proxy_get_exchange
Retrieve complete HTTP exchange details including headers and body previews from captured network traffic using an exchange ID.
Instructions
Get full details of a captured HTTP exchange including headers and body previews.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange_id | Yes | Exchange ID from proxy_list_traffic |
Implementation Reference
- src/tools/traffic.ts:75-92 (handler)MCP tool definition and handler for 'proxy_get_exchange'. It retrieves exchange details using 'proxyManager.getExchange' and formats the output.
server.tool( "proxy_get_exchange", "Get full details of a captured HTTP exchange including headers and body previews.", { exchange_id: z.string().describe("Exchange ID from proxy_list_traffic"), }, async ({ exchange_id }) => { const exchange = proxyManager.getExchange(exchange_id); if (!exchange) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: `Exchange '${exchange_id}' not found` }) }] }; } return { content: [{ type: "text", text: truncateResult({ status: "success", exchange }), }], }; },