add_block_id
Assigns a ^block-id to a paragraph or list item by line number or text so you can link or embed it, then returns the ready-to-use link.
Instructions
Give a paragraph/list item a ^block-id (found by line number or by text) so it can be linked or embedded. Returns the ready-to-use link.
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": {
"file": "<file>"
},
"name": "add_block_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Default: random 6 chars | |
| file | Yes | Note path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]] | |
| line | No | ||
| text | No | Text on the target line | |
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. |