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).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "assign_to_coding_agent"
}
}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. | |
| noRepoOutput | No | Only used when repoUrl is omitted: where the finished work goes. "zip" (default) saves the whole workspace as a zip linked on the task and attached to the standalone task — no GitHub needed. "new_repo" creates a new private GitHub repo on the user's connected account and pushes the work there (fails to start if GitHub isn't connected). Ignored when repoUrl is set. |