adopt_session
Adopt the project's parked AI session: merge its branch back into the default branch and hand the HEAD over, so the editor sees both the session's changes and any pushed commits. Use instead of abandon_session when the session's work should be kept. On conflict nothing is changed and the conflict file list is returned; failure modes keep the session active and retryable and come back as reason= discriminators (conflict / head_kept / head_mismatch — resolve in the web app, or fall back to abandon_session).
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": {
"project_id": "<project_id>"
},
"name": "adopt_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |