Paste text into a document
paste_contentPaste any text into a document where asked: LaTeX (a fragment or a whole paper), Markdown or plain text, or Lilia text. Lilia reads it as its Import → Paste does, adds the blocks after afterId (or at the end), checks that the document still compiles, and returns the new block ids, the verdict (problems on the pasted blocks) and the LaTeX of what was pasted. The way to move a paper over section by section: paste a section, read the verdict, fix with edit_block, paste the next after the last block added. The rest of the document and its settings are left as they are.
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>",
"content": "<content>"
},
"name": "paste_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | AUTO (default), LATEX, MARKDOWN or LML. | |
| afterId | No | Insert after this block id (from get_outline or a previous paste); omit to add at the end. | |
| content | Yes | The text to paste. | |
| documentId | Yes | The document id. |