Implementation
@override
Tool get definition => Tool(
name: 'logs',
description: 'Query the agent action log. Returns the natural-language view by '
'default; pass `format: json` for the structured entries.',
inputSchema: ObjectSchema(
properties: {
'format': Schema.string(
description: 'text (default) or json',
),
'limit': Schema.int(
description: 'Max entries to return. Default 50.',
),
'tool': Schema.string(
description: 'Filter by tool name (exact match).',
),
'failuresOnly': Schema.bool(
description: 'Only entries that failed (had an errorKind).',
),
'sinceSeq': Schema.int(
description: 'Return entries with sequence >= sinceSeq.',
),
},
),
);