proxy_list_sessions
List recorded network traffic sessions captured by the proxy server for analysis, modification, or replay purposes.
Instructions
List recorded sessions in storage.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/sessions.ts:76-90 (handler)Handler for proxy_list_sessions that retrieves the list of sessions from proxyManager.
server.tool( "proxy_list_sessions", "List recorded sessions in storage.", {}, async () => { try { const sessions = await proxyManager.listSessions(); return { content: [{ type: "text", text: truncateResult({ status: "success", count: sessions.length, sessions }) }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: toError(e) }) }] }; } }, );