submit_job
Submits a batch of coding agent jobs across up to 20 repositories, running each independently to implement changes and open merge or pull requests.
Instructions
Submit a batch of agent jobs. Each repository runs as an independent job.
Returns {batch_id, jobs: [{job_id, repo_id, ref, thread_id, status}], failed: [...]}. Each job runs
independently; poll with get_job_status per job_id or pass wait=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repos": "<repos>",
"prompt": "<prompt>"
},
"name": "submit_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | When true, blocks until every job in the batch completes (up to 10 minutes total) and returns each job's full result. | |
| muted | No | Mute notifications for every job in this batch. | |
| repos | Yes | 1-20 repositories to run against. | |
| prompt | Yes | Task instruction for the agent. Describe the intended change — do NOT ask the agent to commit, push, create a branch, or open a merge/pull request; those steps run automatically after the job, and DAIV generates the branch name, commit message, and MR/PR title/description itself. Be specific: include file paths, function names, or error messages. The same prompt runs independently against each repository, except one whose repos[].prompt replaces it; with `shared_session` it runs once across all of them. | |
| thread_id | No | Optional. Continue an existing thread by passing its UUID (from a prior submit_job or get_job_status response). When set, ``repos`` must contain exactly one entry whose session belongs to the calling user and is not archived for them; a multi-repository session also accepts its full list, in order, with no ``ref``. If the session is busy, the job joins its next run for the job's branch, which starts once the current run ends; jobs that join the same next run share its job_id. | |
| references | No | Optional external work-item references (max 20) linked into the MR/PR DAIV creates, e.g. [{"key": "PROJ-123", "url": "https://...", "provider": "jira", "relation": "relates"}]. Providers with special syntax: gitlab-issue, github-issue, sentry, jira; any other provider renders as a plain reference link. relation=closes opts into auto-close on merge where the provider supports it (default: relates). On thread continuation, new references are merged into the session. | |
| agent_model | No | Model override as 'provider_slug:model_name' (e.g. 'openrouter:anthropic/claude-sonnet-4.6'). Provider slug must match an enabled Provider row. Omit to use the repository's models.agent model, else the system default; the call is refused when no system default is configured. | |
| environment | No | Optional sandbox environment to use for every job in this batch — pass the env name or UUID. Visible scopes are the caller's USER envs plus all GLOBAL envs. Use ``list_environments`` to discover names. When omitted, the runtime is Auto-resolved for each repository (USER env matching repo_ids → GLOBAL env matching repo_ids → GLOBAL default). | |
| mcp_overrides | No | Optional MCP servers to switch on or off for every job in this batch, relative to the default set, e.g. {"grafana": true}: true adds an on-demand server, false drops an active one. On a continued thread (thread_id) they apply on top of the thread's own, and can't change them while another run on the thread is unfinished. | |
| shared_session | No | Run every repository in one session: the agent sees all of them and opens one merge request per repository it changes. The first repository is the main one. At most 5. | |
| agent_thinking_level | No | Optional thinking effort: minimal/low/medium/high. Omit to inherit the repository's models.agent level, else the system default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |