(value: unknown)
| 136 | const decodeArgsRecord = Schema.decodeUnknownOption(ArgsRecord); |
| 137 | |
| 138 | const argsRecord = (value: unknown): Record<string, unknown> => |
| 139 | Option.getOrElse(decodeArgsRecord(value), () => ({})); |
| 140 | |
| 141 | // The spec answers `tools/call` for a tool the server no longer advertises |
| 142 | // with a protocol error (`-32602 Invalid params`, example message |