Compile a sentence into a Task plan
workbench_tasks_compileRuns the compiler over a sentence and returns the PROPOSED plan (or repair-grade problems — fix by refining the sentence with the user, not by guessing). Nothing persists. Present the proposal in plain terms: which clauses run flows, which you will handle, who decides, what the compiler noted. computer.sites lists sites the plan names and whether the Task allows them; workbench_tasks_set_sites asks an admin to allow the rest. Then iterate or freeze. Compile may take ~15s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | No | The task this sentence belongs to, when compiling an edit — keeps it out of the child-task candidates. | |
| sentence | Yes | The sentence to compile. | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | Re-call with the approvalId from a needs_confirmation response after the user approves. |