Interface: ToolCallFormatterDeclaration
Makaio Framework / contracts / ToolCallFormatterDeclaration
Interface: ToolCallFormatterDeclaration
Section titled “Interface: ToolCallFormatterDeclaration”Defined in: ../../../packages/contracts/src/extension/contributions/tool-formatter-types.ts:56
A tool call formatter declaration contributed by a package.
Structurally compatible with ToolCallFormatterDefinition in the
web-framework, so the package loader can register declarations directly
without bridging.
Properties
Section titled “Properties”filter
Section titled “filter”filter:
PayloadFilter
Defined in: ../../../packages/contracts/src/extension/contributions/tool-formatter-types.ts:65
Declarative filter matched against the tool call input shape.
Uses a PayloadFilter with dot-path support (e.g. 'args.subagent_type').
All conditions are ANDed.
format
Section titled “format”format: (
input) =>PluginFormattedToolCallOutput|undefined
Defined in: ../../../packages/contracts/src/extension/contributions/tool-formatter-types.ts:80
Pure function that transforms a tool call block into formatted output.
Returns undefined if the formatter decides not to handle this specific
call, falling through to the next formatter.
Parameters
Section titled “Parameters”The tool call block data.
Returns
Section titled “Returns”PluginFormattedToolCallOutput | undefined
Formatted output, or undefined to skip to the next formatter.
id:
string
Defined in: ../../../packages/contracts/src/extension/contributions/tool-formatter-types.ts:58
Unique identifier for this formatter.
priority
Section titled “priority”priority:
number
Defined in: ../../../packages/contracts/src/extension/contributions/tool-formatter-types.ts:71
Priority for ordering when multiple formatters match.
Lower number = higher priority (checked first). Default: 50.