assign_to_coding_agent
Assign a standalone task to mFlow's autonomous coding agent for asynchronous execution. Returns immediately with the codeAgentTaskId and queued status (plus queuePosition while it waits for a free sandbox) — it does not stream or wait for completion; poll get_coding_agent_status separately. Use this once you've decided a task is ready for implementation and want to delegate the "how" rather than doing it yourself. The task must already exist (create_standalone_task first if it doesn't).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | Sandbox tier preset: light (2GB/1 CPU) for small/simple changes, mid (3GB/2 CPUs) for typical work, heavy (7GB/4 CPUs) for large builds or heavier dependency installs. Defaults to mid when omitted. | |
| taskId | No | Internal standalone task ID (Mongo _id) to assign. Provide exactly one of taskId or taskKey — taskKey is looked up via get_standalone_task_by_key if given. | |
| repoUrl | No | GitHub repo to work against, as "owner/repo" or a full github.com URL. Omit to have the agent scaffold a fresh project instead of targeting an existing repo. | |
| taskKey | No | Human-readable standalone task key, e.g. "MVPB-120". Provide exactly one of taskId or taskKey. | |
| aiProvider | No | BYOK AI provider to run the task with; omit to use mFlow's hosted/default provider. | |
| extraPrompt | No | Additional instructions appended to the task's existing title/description — use to give the agent context the task itself doesn't capture. | |
| instructions | No | Alias for extraPrompt — provide one or the other, not both. |