get_document_toc
Retrieve a lightweight table of contents for a document to understand its structure before loading specific sections. Returns chunk IDs for further access.
Instructions
Get a lightweight table of contents for a document (~50 tokens).
Use this to understand document structure before loading specific sections. Returns chunk IDs that you can pass to get_sections.
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": {
"doc_id": "<doc_id>"
},
"name": "get_document_toc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document ID (from search results or collection listings) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |