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