optimize_context_stream
Yields stage-by-stage progress events for context optimization, showing real-time filtering and compression using code knowledge graphs.
Instructions
Streaming pipeline: yields stage-by-stage progress events.
Returns a list of event dicts in order: [{"stage": "parsing", "status": "started"}, ...]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"codebase_path": "<codebase_path>",
"query": "<query>"
},
"name": "optimize_context_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codebase_path | Yes | ||
| query | Yes | ||
| token_budget | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |