Run a plugin
run_pluginExecute any plugin by name with JSON arguments to trigger external edits and receive stdout, stderr, and revision data.
Instructions
Run a plugin (an external program editing through the HTTP API) by name, with args as JSON: {ok,code,stdout,stderr,edits,revision}. The plugins tool lists them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments passed to the plugin as JSON | |
| name | Yes | Plugin to run, by name (the plugins tool lists them) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | The plugin exited cleanly | |
| code | No | Exit code; null when it was stopped | |
| edits | Yes | Changes it made | |
| stderr | Yes | What it complained | |
| stdout | Yes | What it printed | |
| revision | Yes | Plan revision after it | |
| timed_out | No | It ran out of time |