Skip to content

Interface: ToolCallFormatterDeclaration

Makaio Framework


Makaio Framework / contracts / 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.

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: (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.

PluginToolCallFormatterInput

The tool call block data.

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: 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.