cortex_context
Assembles relevant notes and code snippets from local memory within a strict token budget, so coding agents can retrieve ranked context for a query without exceeding limits.
Instructions
Assemble relevant information within a specific token budget limit strictly
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": {
"query": "<query>"
},
"name": "cortex_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The query to build context upon | |
| token_budget | No | Allowed max tokens |