skills

skills.processFile

processFile(file: File): Promise<SkillResult>

Find the first registered skill that accepts the given file and run it.

Skills are tested in registration order; the first match wins.

fileFileThe File object to process.

Returns: Promise<SkillResult>

Example

const result = await api.skills.processFile(file);
if (result) await api.skills.apply(result);