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.
2 parents 4b69f40 + 6bfa975 commit cb6d7ddCopy full SHA for cb6d7dd
README.md
@@ -471,15 +471,20 @@ await client.connect(transport);
471
const prompts = await client.listPrompts();
472
473
// Get a prompt
474
-const prompt = await client.getPrompt("example-prompt", {
475
- arg1: "value"
+const prompt = await client.getPrompt({
+ name: "example-prompt",
476
+ arguments: {
477
+ arg1: "value"
478
+ }
479
});
480
481
// List resources
482
const resources = await client.listResources();
483
484
// Read a resource
-const resource = await client.readResource("file:///example.txt");
485
+const resource = await client.readResource({
486
+ uri: "file:///example.txt"
487
+});
488
489
// Call a tool
490
const result = await client.callTool({
0 commit comments