[Docs] Add a tools/call example in README

This PR adds a `tools/call` example to make it clear how to call a tool from
the tool list obtained via `tools/list`.

Closes #110.
This commit is contained in:
Koichi ITO 2025-08-29 12:59:30 +09:00
commit da4fd6410e

View file

@ -214,6 +214,7 @@ You can run this script and then type in requests to the server at the command l
$ ruby examples/stdio_server.rb
{"jsonrpc":"2.0","id":"1","method":"ping"}
{"jsonrpc":"2.0","id":"2","method":"tools/list"}
{"jsonrpc":"2.0","id":"3","method":"tools/call","params":{"name":"example_tool","arguments":{"message":"Hello"}}}
```
## Configuration