Skip to content

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.

Capabilityworkspace.set_bookmark
AreaWorkspace and files
Accesschanges files
Reaches—
Rightswrite
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative file.
linerequiredinteger1-based line; it must exist in the file.minimum 0
mnemonicstringOne of 1-9, 0, A-Z (letters in either case); unique in the project. Omitted: kept as it is; empty: removed.
descriptionstringOne line, at most 200 characters. Omitted: kept as it is; empty: removed.
dry_runbooleanOnly 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.

Terminal window
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"
]
}
}
}