Skip to content

Commit 03d48f3

Browse files
committed
Add example to Readme of calling a tool with JSON arguments
1 parent cc6b265 commit 03d48f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ npx @modelcontextprotocol/inspector --cli node build/index.js --method tools/lis
395395
# Call a specific tool
396396
npx @modelcontextprotocol/inspector --cli node build/index.js --method tools/call --tool-name mytool --tool-arg key=value --tool-arg another=value2
397397

398+
# Call a tool with JSON arguments
399+
npx @modelcontextprotocol/inspector --cli node build/index.js --method tools/call --tool-name mytool --tool-arg 'options={"format": "json", "max_tokens": 100}'
400+
398401
# List available resources
399402
npx @modelcontextprotocol/inspector --cli node build/index.js --method resources/list
400403

0 commit comments

Comments
 (0)