move_block
Relocate a block (and its children) to a new position in the Logseq graph. Choose to insert it as a child or sibling of the target block to restructure your knowledge base.
Instructions
Moves a block to a new location in the graph.
This allows for reorganizing the structure of blocks in the graph by moving
a block (and all its children) to a different location.
IMPORTANT NOTES:
1. The block will maintain its children when moved
2. The hierarchical position depends on the 'as_child' parameter:
- If as_child=True: The block becomes a child of the target block
- If as_child=False: The block becomes a sibling after the target block
Args:
block_id (str): The ID of the block to move.
target_block_id (str): The ID of the target block to move to.
as_child (bool, optional): Whether to make the block a child of the target.
Default is False (insert as sibling).
Returns:
dict: 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"
}