update_block
Modify existing blocks in Logseq by updating content or properties, ensuring journal page attributes are preserved. Use block ID and new content to streamline knowledge graph adjustments.
Instructions
Updates an existing block in the Logseq graph.
IMPORTANT NOTES:
1. All blocks are automatically formatted as bullet points in Logseq UI
2. To create links to other pages, use double brackets: [[Page Name]]
When updating blocks on journal pages:
- The "journal?" and "journalDay" attributes will be preserved
- "journalDay" will remain in YYYYMMDD format (e.g., 20250404)
Args:
block_id (str): The ID of the block to update.
content (str): The new content for the block.
properties (dict, optional): Properties to update on the block.
Returns:
dict: Information about the updated block.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
block_id | Yes | ||
content | Yes | ||
properties | No |
Input Schema (JSON Schema)
{
"properties": {
"block_id": {
"title": "Block Id",
"type": "string"
},
"content": {
"title": "Content",
"type": "string"
},
"properties": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Properties"
}
},
"required": [
"block_id",
"content"
],
"title": "update_blockArguments",
"type": "object"
}