optimize_context_structured
Filter and compress codebase context by 80-90% using knowledge graphs, outputting structured JSON for efficient LLM processing.
Instructions
Full pipeline with structured JSON output mode.
Args: output_format: "markdown" (default) or "json" for structured output.
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_structured"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codebase_path | Yes | ||
| query | Yes | ||
| token_budget | No | ||
| output_format | No | markdown |