convert

abstract fun convert(context: ToolCallContext): Map<String, Any>

Convert a ToolCallContext to a metadata map suitable for MCP _meta.

Return

A filtered/transformed map of metadata to send with the MCP tool call. An empty map means no metadata will be attached.

Parameters

context

The full tool call context from the current execution