get_token_stats
Query token usage statistics for a specified working directory, with optional session ID to filter results.
Instructions
查询 Coding Bridge MCP 的 token 用量统计。 必选参数:cd(工作目录)。 可选参数:SESSION_ID(指定会话,空字符串或不传则汇总当前进程所有会话)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cd": "<cd>"
},
"name": "get_token_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cd | Yes | ||
| SESSION_ID | No | Session ID to inspect. Empty returns the global total across all sessions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |