Insert Block
insert_blockInsert a new content block before or after an existing block in Mnemosyne knowledge graphs. Specify position and XML content to add structured data.
Instructions
Insert a new block relative to an existing block. Use position='after' or 'before' to specify where to insert. Returns the new block's generated ID. For appending to the end, use append_to_document instead.
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": {
"graph_id": "<graph_id>",
"document_id": "<document_id>",
"reference_block_id": "<reference_block_id>",
"xml_content": "<xml_content>"
},
"name": "insert_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_id | Yes | ||
| document_id | Yes | ||
| reference_block_id | Yes | ||
| xml_content | Yes | ||
| position | No | after |