We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66e1508 commit 6bfa975Copy full SHA for 6bfa975
README.md
@@ -459,15 +459,20 @@ await client.connect(transport);
459
const prompts = await client.listPrompts();
460
461
// Get a prompt
462
-const prompt = await client.getPrompt("example-prompt", {
463
- arg1: "value"
+const prompt = await client.getPrompt({
+ name: "example-prompt",
464
+ arguments: {
465
+ arg1: "value"
466
+ }
467
});
468
469
// List resources
470
const resources = await client.listResources();
471
472
// Read a resource
-const resource = await client.readResource("file:///example.txt");
473
+const resource = await client.readResource({
474
+ uri: "file:///example.txt"
475
+});
476
477
// Call a tool
478
const result = await client.callTool({
0 commit comments