List OpenCode sessions
opencode_session_listList sessions newest first, then filter by directory, search text, archive state, or parent session to locate relevant OpenCode history.
Instructions
List sessions, newest first. Filter by directory, search text, archive state, or parent 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": "opencode_session_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| search | No | ||
| archived | No | ||
| directory | No | ||
| parentSessionID | No |