adopt_session
Take control of an existing omp or Claude Code session: drive a live Tern block in place or reopen a saved transcript with full history in a new tab, keeping its directory, branch, and model.
Instructions
Take control of an existing omp / Claude Code session (from discover_sessions).
block: a live Tern block running the session: it is driven in place, nothing is restarted. session_file: a saved transcript; if it is running in Tern it is adopted live, otherwise it is reopened (resumed with its full history) in a new tab of the Tern session "agents". name: agent name (default: from the session title). base: commit-ish get_diff compares against (default: the current HEAD, so the diff shows changes made from now on plus any uncommitted edits already present). The session keeps its own directory, branch and model: no worktree is created, the model policy is not applied until you switch its model, and stop_agent never deletes anything of an adopted session.
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": "adopt_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| name | No | ||
| block | No | ||
| session_file | No |