(id: string, code: string)
| 190 | }; |
| 191 | |
| 192 | const executeBody = (id: string, code: string) => ({ |
| 193 | jsonrpc: "2.0" as const, |
| 194 | id, |
| 195 | method: "tools/call", |
| 196 | params: { name: "execute", arguments: { code } }, |
| 197 | }); |
| 198 | |
| 199 | /** Run `execute` and return the response text once the call has fully settled. */ |
| 200 | const execute = async ( |