List sessions
oc_sessionsLists OpenCode sessions newest first; filter by directory, text, parent, or archived status to find the session you need.
Instructions
List OpenCode sessions (most recent first), filtered by directory, text or parent.
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": "oc_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| search | No | ||
| archived | No | ||
| directory | No | ||
| parent_id | No |