(id: string, code: string)
| 107 | }; |
| 108 | |
| 109 | const executeBody = (id: string, code: string) => ({ |
| 110 | jsonrpc: "2.0" as const, |
| 111 | id, |
| 112 | method: "tools/call", |
| 113 | params: { name: "execute", arguments: { code } }, |
| 114 | }); |
| 115 | |
| 116 | /** Run `execute` and return the response text once the call has fully settled. */ |
| 117 | const execute = async ( |