set_block_attrs
Set custom key-value metadata on any SiYuan block to track status, priority, or tags. Use it to attach and update attributes directly from AI workflows.
Instructions
Set custom attributes (key-value metadata) on any block. Also used for tags.
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": {
"id": "<id>",
"attrs": "<attrs>"
},
"name": "set_block_attrs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Block ID | |
| attrs | Yes | Key-value pairs to set. Example: {"custom-status": "reviewed", "custom-priority": "high"} |