Start a Devin session
devin_runLaunch a Devin session for a task and immediately receive its ID, URL, model, branch, and push permission, enabling asynchronous work before waiting for results.
Instructions
Starts a Devin session on a task and returns at once with id, URL, model, branch and push permission. The branch must start with "devin/". Rules are appended to the task: push only to that branch, once at the end; the first line of the last message is SORU: or BİTTİ:. Then call devin_wait (one long call, no polling loops).
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": {
"task": "<task>",
"mode": "<mode>",
"repo": "<repo>",
"branch": "<branch>"
},
"name": "devin_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | "cloud" (devin acp --cloud) or "local" (in-process; local runs are sequential) | |
| repo | Yes | Repository: owner/name, a git URL, or (local mode) a checkout path | |
| task | Yes | What Devin should do | |
| model | No | Model for the new session; defaults to the session default | |
| branch | Yes | Branch Devin works on and pushes to; must start with "devin/" | |
| schema | No | Optional JSON Schema the last message must contain a matching JSON object for | |
| acu_cap | No | ACU cap (default 10) | |
| pre_command | No | Command Devin runs first ("first run this"); the MCP does not set up the environment |