move_block
Move a block and its children to a new location in Logseq. Choose to place it as a child or sibling of the target block using block and target IDs for precise organization.
Instructions
Moves a block to a new location in the graph.
Moves a block and all its children to a different location.
- as_child=True: Block becomes a child of the target
- as_child=False: Block becomes a sibling after the target
Args:
block_id: The ID of the block to move.
target_block_id: The ID of the target block to move to.
as_child: Whether to make the block a child of the target (default: False).
Returns:
Result of the move operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
as_child | No | ||
block_id | Yes | ||
target_block_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"as_child": {
"default": false,
"title": "As Child",
"type": "boolean"
},
"block_id": {
"title": "Block Id",
"type": "string"
},
"target_block_id": {
"title": "Target Block Id",
"type": "string"
}
},
"required": [
"block_id",
"target_block_id"
],
"title": "move_blockArguments",
"type": "object"
}