get_stats
Retrieve a high-level statistical overview of OpenCode conversations, including session counts, messages, cost, time range, distribution, and top directories by activity.
Instructions
Overview statistics: session counts, messages, cost, time range, and distribution.
Root vs sub-agent breakdown. Top directories by activity.
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": "get_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Optional scope (global if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||