(args: Schema.Struct<F>)
| 56 | }) |
| 57 | |
| 58 | const McpRequest = <F extends Schema.Struct.Fields>(args: Schema.Struct<F>) => |
| 59 | Schema.Struct({ |
| 60 | jsonrpc: Schema.Literal("2.0"), |
| 61 | id: Schema.Literal(1), |
| 62 | method: Schema.Literal("tools/call"), |
| 63 | params: Schema.Struct({ |
| 64 | name: Schema.String, |
| 65 | arguments: args, |
| 66 | }), |
| 67 | }) |
| 68 | |
| 69 | export const call = <F extends Schema.Struct.Fields>( |
| 70 | http: HttpClient.HttpClient, |