Save a Named Reusable Luau Playbook
playbook-savePersist a named, parameterized Luau snippet as a reusable JSON playbook for later execution via playbook-run, with tags and params for grouping.
Instructions
Persist a named, optionally parameterized Luau snippet to ~/.executor-mcp/playbooks/.json so it can be re-run later via playbook-run. Names must match /^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$/. The source is stored verbatim; ${param} placeholders are replaced at run-time by playbook-run. Use tags to group related playbooks (e.g. 'recon', 'farming'). Upserts on existing names. Signature: { name: string, source: string, description: string?, tags: {string}?, params: {string}? }. Phase: orchestrate; cost=medium; idempotency=read-only. Requires: validated-source. Produces: structured-result. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Filename-safe identifier (used as the JSON file basename). | |
| tags | No | Free-form tags for grouping (e.g. ['recon','farming']). | |
| params | No | Names of ${param} placeholders the source uses (for documentation + UI hints). | |
| source | Yes | The Luau source to save. Use ${param} placeholders for runtime substitution. | |
| description | No | One-line summary of what this playbook does. |