Skip to main content

JsonRpcRequest

A JSON-RPC 2.0 request, relayed to the core service unchanged. The available methods and tool arguments are defined there, so they are not enumerated in this specification — call initialize and then tools/list to discover them.

jsonrpcstringrequired

Always 2.0.

Example: 2.0
id

Request identifier, echoed on the response. A string or a number; absent on notifications.

Example: 1
methodstringrequired

The JSON-RPC method, e.g. initialize, tools/list, tools/call.

Example: tools/list
params object

Method parameters. Shape depends on the method; passed through untouched.

property name*any

Method parameters. Shape depends on the method; passed through untouched.

JsonRpcRequest
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}