tool property
The compact_expand tool bound to this controller.
Implementation
late final AgentTool tool = AgentTool(
name: compactExpandToolName,
description: compactExpandToolDescriptionPrompt,
tier: ApprovalTier.read,
parameters: const {
'type': 'object',
'properties': {
'target': {
'type': 'string',
'description':
'Numeric id or range from a context marker, '
'e.g. "5" or "2-6". Omit to list the hidden-segment index.',
},
'query': {
'type': 'string',
'description':
'Search the hidden segments (preview and full content) when '
'you know WHAT you need but not the id. Free — no budget.',
},
'page': {
'type': 'integer',
'description': '1-based page for giant segments (default 1)',
'minimum': 1,
},
},
'required': [],
},
execute: _execute,
);