Read a document
get_documentRetrieve a document's source code, diagnostics, metrics, and structure—containers, elements, relations, and indices—by document ID, filename, project name, or frontmost document.
Instructions
Source code (with line numbers), diagnostics, metrics and the structure (containers, elements, relations with their indices) of a document.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | Document id (e.g. doc1), file name or project name. Omit for the frontmost document. |