set_bookmark
MCP tools › Workspace and files
Set or change the bookmark on a line of a workspace file. A mnemonic is unique in the project: giving it here takes it from another bookmark (dry run reports mnemonic_taken_from). Omitted fields are kept, empty strings remove. Dry run unless dry_run false, which needs the user-granted write right; logged without the description. An open window updates within a second.
| Capability | workspace.set_bookmark |
|---|---|
| Area | Workspace and files |
| Access | changes files |
| Reaches | — |
| Rights | write |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative file. |
linerequired | integer | 1-based line; it must exist in the file.minimum 0 |
mnemonic | string | One of 1-9, 0, A-Z (letters in either case); unique in the project. Omitted: kept as it is; empty: removed. |
description | string | One line, at most 200 characters. Omitted: kept as it is; empty: removed. |
dry_run | boolean | Only return what would be saved (default true). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project set_bookmark '{"path":"<string>","line":1}'Input schema as JSON
{ "type": "object", "required": [ "path", "line" ], "properties": { "path": { "description": "Workspace-relative file.", "type": "string" }, "line": { "description": "1-based line; it must exist in the file.", "type": "integer", "minimum": 0 }, "mnemonic": { "description": "One of 1-9, 0, A-Z (letters in either case); unique in the project. Omitted: kept as it\nis; empty: removed.", "type": [ "string", "null" ] }, "description": { "description": "One line, at most 200 characters. Omitted: kept as it is; empty: removed.", "type": [ "string", "null" ] }, "dry_run": { "description": "Only return what would be saved (default true).", "type": [ "boolean", "null" ] } }}