Run a plugin
run_pluginExecute a named plugin with JSON arguments to apply external edits via the HTTP API, returning status, output, edits, revision, resource usage, and applied limits.
Instructions
Run a plugin (an external program editing through the HTTP API) by name, with args as JSON: {ok,code,stdout,stderr,edits,revision,usage {peak_mb,cpu_s,measured},limits,not_applied}. A plugin as heavy as a modeler gets the limits its plugin.json declares (cores, memory, priority, time) that this system can apply, not_applied naming the rest, and runs alone, never beside a photo render. 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 | ||
| code | No | ||
| edits | Yes | ||
| usage | No | ||
| limits | No | ||
| stderr | Yes | ||
| stdout | Yes | ||
| revision | Yes | ||
| timed_out | No | ||
| not_applied | No |