Add a section
add_sectionAdd a section heading: level 1 is a \section, 2 a \subsection, 3 a \subsubsection. After a given block, or at the end. Returns the new block id; add the section's text after it with paste_content or add_block. To undo it, give the reply's undo.versionId to restore_version.
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": {
"documentId": "<documentId>",
"title": "<title>"
},
"name": "add_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | A label to refer to it, e.g. sec:related. Optional. | |
| level | No | 1 section (default), 2 subsection, 3 subsubsection. | |
| title | Yes | The section's title, e.g. "Related work". | |
| afterId | No | Insert after this block id; omit to add at the end. | |
| documentId | Yes | The document id. |