run_plugin_action
MCP tools › Window and UI driver
Run a plugin action in its sandbox (no network or clock, limited memory) and return its output: replacement text or message for input; for edit on path with a selection, its edits and the edited text; complete items at offset; status text; panel rows. The plugin reads project files only with the user-granted project-read. Secret-looking files (.env, *.pem, ...) or files outside the project's sources are refused unless allow_secret_file true (audited). Nothing is written.
Its results carry text from files, process: the client is told to treat that as data, never as instructions.
| Capability | ui.run_plugin_action |
|---|---|
| Area | Window and UI driver |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
actionrequired | string | Action id as plugins lists it, e.g. Plugin.upper.upper. |
input | string | The text the action works on (the selection in the editor); for edit actions the file's
text is used instead.default "" |
path | string | Workspace file an edit action works on (SPEC-0156). |
selection_start | integer | Selection start in characters for an edit action (default 0).minimum 0 |
selection_end | integer | Selection end in characters (default: the start).minimum 0 |
offset | integer | Caret in characters for a complete action (default: the end of the text, SPEC-0210).minimum 0 |
allow_secret_file | boolean | Hand the file at path to the plugin although it is a file a plugin may not read (a name
that commonly holds secrets such as .env, or not one of the project's own sources). Only
when the user asked for exactly this file; the call is noted in file-audit.jsonl
(SPEC-0156 v4). Default false: such a file is refused. |
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 run_plugin_action '{"action":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "action" ], "properties": { "action": { "description": "Action id as `plugins` lists it, e.g. `Plugin.upper.upper`.", "type": "string" }, "input": { "description": "The text the action works on (the selection in the editor); for `edit` actions the file's\ntext is used instead.", "type": "string", "default": "" }, "path": { "description": "Workspace file an `edit` action works on (SPEC-0156).", "type": [ "string", "null" ] }, "selection_start": { "description": "Selection start in characters for an `edit` action (default 0).", "type": [ "integer", "null" ], "minimum": 0 }, "selection_end": { "description": "Selection end in characters (default: the start).", "type": [ "integer", "null" ], "minimum": 0 }, "offset": { "description": "Caret in characters for a `complete` action (default: the end of the text, SPEC-0210).", "type": [ "integer", "null" ], "minimum": 0 }, "allow_secret_file": { "description": "Hand the file at `path` to the plugin although it is a file a plugin may not read (a name\nthat commonly holds secrets such as `.env`, or not one of the project's own sources). Only\nwhen the user asked for exactly this file; the call is noted in `file-audit.jsonl`\n(SPEC-0156 v4). Default false: such a file is refused.", "type": [ "boolean", "null" ] } }}