Add section heading to Docling document
add_section_heading_to_docling_documentInsert a section heading into a cached document by specifying heading text and level to organize content.
Instructions
Add a section heading to an existing document in the local document cache.
This tool inserts a section heading with the specified heading text and level into a document that has already been processed and stored in the local cache. Section levels typically represent heading hierarchy (e.g., 1 for H1, 2 for H2).
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": {
"document_key": "<document_key>",
"section_heading": "<section_heading>",
"section_level": "<section_level>"
},
"name": "add_section_heading_to_docling_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_key | Yes | The unique identifier of the document in the local cache. | |
| section_level | Yes | The level of the heading, starting from 1, where 1 is the highest level. | |
| section_heading | Yes | The text to use for the section heading. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_key | Yes |