Skip to content

collectToolSpecs

collectToolSpecs(tools): object

Every tool an extension declares, as validated canonical specs, plus the errors for any that aren’t valid (prefixed with the tool’s name). Also catches what only the definition knows: a tool with dropActions but no drop(), or no run() at all.

Parameter Type
tools unknown

object

errors: string[]

specs: ToolSpec[]