list_sessions
Returns sessions sorted by most recent activity, with message counts and last-updated timestamps. Each session represents one document with full edit history and AI conversation persisted server-side. Use to find a previous editing context to resume (then call get_session_history) or to audit your workspace.
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": "list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of sessions to return | |
| user_id | No | Filter by user ID (deprecated - auth determines scope) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Total number of sessions returned. | |
| sessions | Yes | Array of session summaries, ordered by most recent activity. |