run_task
Run trusted, stored per-language commands for build, lint, test, e2e, or verify tasks. Executes only the user-saved command from project or global config, without shell access, for the primary or specified language.
Instructions
Run a stored per-language task command — build, lint, test, e2e, verify, or a project-defined slot — configured in [tasks.]. It executes only the command the user saved (no shell, no agent-supplied command line), for this workspace's primary language or the one you name in language. Commands run from the workspace root, or from [tasks.] working_dir when the module lives in a subdirectory. A project-supplied (.plumb/config.toml) command must be trusted first (run plumb trust); the shipped defaults and global-config commands always run. Output and runtime are bounded. Pairs with topology_affected (which says WHICH tests to run; this runs them).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | Which stored task command to run: build, lint, test, e2e, verify, or a project-defined slot under [tasks.<lang>]. session_start lists what's configured; an unconfigured slot is refused with that list. | |
| target | No | Optional target substituted for a {target} token in the stored command (e.g. one test name or package). Restricted to one shell-safe argument ([A-Za-z0-9._/:@-]); refused if the command has no {target} slot. | |
| language | No | Which [tasks.<language>] block to run, for a polyglot repo whose other languages are not the primary. Omit for the primary. A language with no commands is refused, naming those that have them. |