list_sessions
Lists convertible sessions from Claude Code, Codex CLI, or OpenCode harnesses. Provides session ID, title, CWD, model, message count, and age to identify the session to convert.
Instructions
List convertible sessions from a harness. Shows session ID, title, CWD, model, message count, and age. Use this to find the session ID to convert.
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": {
"harness": "<harness>"
},
"name": "list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| harness | Yes | Which harness to list sessions from | |
| cwdPrefix | No | Filter by CWD prefix (e.g. '~/apps' to find sessions in that directory tree) | |
| searchPaths | No | Additional paths to search for OpenCode databases (only for opencode harness) |