Query-relevant project context
project_contextRetrieve ranked excerpts across a project's live files for a query, including file path, line range, and heading provenance; returns budget-limited, read-only context.
Instructions
Returns the most RELEVANT excerpts across ALL the project's live files for a query (lexical ranking over structural chunks), each with provenance: file path, 1-based line range, and Typst heading path. Budget-limited and read-only: files with duplicate-path conflicts or over the per-file cap are skipped (listed in skipped with a reason), and selectionTruncated reports when relevant chunks did not fit the budget. Use read_file for a complete file.
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": {
"project": "<project>",
"query": "<query>"
},
"name": "project_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What you are looking for — ranks chunks across the whole project. | |
| budget | No | Response budget in characters of excerpt text (default 6144). | |
| project | Yes | The projectId of the project to work on, as returned by list_projects. |