obsidian_replace_selection
Replaces the selected text in the active editor with specified content, enabling programmatic edits to the current selection.
Instructions
Replace the currently selected text in the active editor.
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": {
"text": "<text>"
},
"name": "obsidian_replace_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to replace the selection with |