Skip to content

Commit da4fd64

Browse files
committed
[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.
1 parent 9486c63 commit da4fd64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ You can run this script and then type in requests to the server at the command l
214214
$ ruby examples/stdio_server.rb
215215
{"jsonrpc":"2.0","id":"1","method":"ping"}
216216
{"jsonrpc":"2.0","id":"2","method":"tools/list"}
217+
{"jsonrpc":"2.0","id":"3","method":"tools/call","params":{"name":"example_tool","arguments":{"message":"Hello"}}}
217218
```
218219

219220
## Configuration

0 commit comments

Comments
 (0)