logseq_insert_block
Insert new blocks into Logseq to create page-level or nested blocks, manage properties, and set custom UUIDs. Specify positioning relative to parent blocks for precise organization and reference.
Instructions
Insert a new block into Logseq. Can create: - Page-level blocks (use is_page_block=true with page name as parent_block) - Nested blocks under existing blocks - Blocks with custom UUIDs for precise reference Supports before/after positioning and property management.
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": {
"content": "<content>"
},
"name": "logseq_insert_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | No | Insert before parent | |
| content | Yes | Content of the new block | |
| custom_uuid | No | Custom UUID for block | |
| is_page_block | No | Page-level block flag | |
| parent_block | No | UUID or content of parent block |