sessions_list
List and filter OpenCode sessions on a single server; use cross-server search for multi-server queries.
Instructions
List sessions on one server. Use this for a single server, including filtered listings; sessions_search is for searches across servers. Omit the server argument when exactly one server is available.
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": "sessions_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max sessions to return. | |
| order | No | Sort order by updated time. | |
| cursor | No | Pagination cursor from previous page. | |
| search | No | Substring to match in title or id. | |
| server | No | Server id. Omit when exactly one server is available. | |
| project | No | Filter by project id. | |
| subpath | No | Filter by subpath. | |
| archived | No | Include archived sessions. | |
| directory | No | Filter by working directory. | |
| parent_id | No | Filter by parent session id. |