docs_read
Read one known DS Platform document (full text or a single heading section) with TOC, code examples, sourceUrl, specVersion, and buildCommit. Pass document_id (equivalent aliases: id, doc_id, docId, documentId, path, file; document_id takes precedence), optional section, and view ('full' default for body text or 'summary' for metadata/TOC); unknown IDs return an error listing valid document_id values. Use after docs_search when you know the document_id; use docs_search instead when discovering documents by keyword. Omitting document_id on public /mcp returns default DS2-SPEC-V2.0 starter guide 'AI-ST-KIT' (summary) with fallback=true.
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": "docs_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Alias for document_id | |
| sec | No | Alias for section | |
| ver | No | Alias for version | |
| file | No | Alias for document_id | |
| name | No | Alias for document_id | |
| path | No | Alias for document_id | |
| view | No | Optional view mode ('summary' | 'full') | |
| docId | No | Short alias for document_id; provide the same identifier if combining aliases | |
| title | No | Alias for document_id | |
| anchor | No | Alias for section | |
| doc_id | No | Alias for document_id | |
| heading | No | Alias for section | |
| profile | No | Alias for version | |
| section | No | Optional section heading number, title, or anchor to read (omit or '' for full document) | |
| version | No | Target documentation/language version ('DS2-SPEC-V1.1' / 'ds2/v1' or 'DS2-SPEC-V2.0' / 'ds2/v2') | |
| document | No | Alias for document_id | |
| exampleId | No | Optional specific example filename or ID to retrieve with source | |
| sectionId | No | Alias for section | |
| documentId | No | CamelCase alias for document_id | |
| resultView | No | Alias for view | |
| section_id | No | Alias for section | |
| document_id | No | Canonical document ID or relative path (e.g. 'SPEC-00', 'SPEC-04', 'ST-EXPR-SPEC', 'AI-ST-KIT', 'AI-KIT', 'AI-IMAGE-KIT', 'STUDIO-3D-KIT', 'DS2-LANG-SPEC', 'grammar/ds2-v1.ebnf', 'grammar/ds2-v2.ebnf', 'contracts/diagnostics.json', 'examples/01_chain.ds2', 'wiki/home') | |
| specVersion | No | Alias for version | |
| targetVersion | No | Alias for version | |
| includeExamples | No | Whether to include starter and preset .ds2 examples | |
| includeExampleSource | No | Whether to include full .ds2 source text for examples even in summary view |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Structured error payload when status != OK | |
| result | No | Operation result payload | |
| status | No | OK | REJECTED | |
| protocol | No | DSDX-MCP/1.0 protocol URN | |
| revision | No | Workspace revision tag (e.g. rev-0001) | |
| operation | No | Executed operation name |