arbdebug_validationInputsAt
Retrieve validation inputs for a specific message on Arbitrum Nitro nodes using the debug API, enabling precise monitoring and troubleshooting of chain health and node operations.
Instructions
Get validation inputs at a specific message (requires debug API)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainName | No | Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL | |
| msgNum | Yes | Message number to get validation inputs for | |
| rpcUrl | No | The RPC URL of the Arbitrum node (optional if default is set) | |
| target | No | Target for validation inputs |
Implementation Reference
- src/index.ts:633-650 (handler)MCP tool handler implementation. Resolves RPC URL from arguments or chain name, creates NitroNodeClient instance, calls getValidationInputsAt(msgNum, target), and returns JSON-formatted result.case "arbdebug_validationInputsAt": { const rpcUrl = await this.resolveRpcUrl( (args.rpcUrl as string) || (args.chainName as string) ); const nodeClient = new NitroNodeClient(rpcUrl); const result = await nodeClient.getValidationInputsAt( args.msgNum as number, args.target as string ); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:1435-1462 (schema)Tool schema definition including input schema with properties for rpcUrl, chainName, msgNum (required), and target.name: "arbdebug_validationInputsAt", description: "Get validation inputs at a specific message (requires debug API)", inputSchema: { type: "object" as const, properties: { rpcUrl: { type: "string", description: "The RPC URL of the Arbitrum node (optional if default is set)", }, chainName: { type: "string", description: "Chain name (e.g., 'Xai', 'Arbitrum One') - will auto-resolve to RPC URL", }, msgNum: { type: "number", description: "Message number to get validation inputs for", }, target: { type: "string", description: "Target for validation inputs", }, }, required: ["msgNum"], }, },
- Helper function in NitroNodeClient that performs the actual RPC call to 'arbdebug_validationInputsAt' with hex-encoded msgNum and optional target, returning validation inputs or error.async getValidationInputsAt( msgNum: number, target?: string ): Promise<ValidationInputs> { try { const params = [`0x${msgNum.toString(16)}`]; if (target) { params.push(target); } const inputs = await this.makeRpcCall( "arbdebug_validationInputsAt", params ); return { inputs }; } catch (error) { return { inputs: null, error: `Validation inputs not supported on this RPC endpoint: ${ (error as Error).message }`, }; } }
- Type definition for the return value of the validation inputs RPC call.export interface ValidationInputs { inputs: any; error?: string; }