Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Stdio Protocol

Usage

r2a stdio

Message Format

Each message follows the JSON-RPC 2.0 (https://www.jsonrpc.org/specification) specification.

Request:

{jsonrpc:2.0,method:<method>,params:{...},id:<number>}

Response:

{jsonrpc:2.0,result:{...},id:<number>}

Error:

{jsonrpc:2.0,error:{code:<number>,message:...},id:<number>}

Notification:

  • no response expected
{jsonrpc:2.0,method:<method>,params:{...}}

Error codes

  • -32700 Parse Error
  • -32600 Invalid Request
  • -32601 Method Not Found
  • -32602 Invalid Params
  • -32603 Internal Error
  • -32000 Timeout Error
  • -32001 Cancelled Error
  • -32002 Version Mismatch

Commands