(value: unknown)
| 40 | const decodeArgsRecord = Schema.decodeUnknownOption(ArgsRecord); |
| 41 | |
| 42 | const argsRecord = (value: unknown): Record<string, unknown> => |
| 43 | Option.getOrElse(decodeArgsRecord(value), () => ({})); |
| 44 | |
| 45 | // The spec answers `tools/call` for a tool the server no longer advertises |
| 46 | // with a protocol error (`-32602 Invalid params`, example message |