Merge pull request #10 from modelcontextprotocol/ashwin/promptargs

make prompts pass args
This commit is contained in:
ashwin-ant
2024-10-09 09:05:00 -07:00
committed by GitHub
4 changed files with 65 additions and 23 deletions

View File

@@ -139,8 +139,8 @@ const App = () => {
sendWebSocketMessage({ type: "listPrompts" });
};
const getPrompt = (name: string) => {
sendWebSocketMessage({ type: "getPrompt", name });
const getPrompt = (name: string, args: Record<string, unknown> = {}) => {
sendWebSocketMessage({ type: "getPrompt", name, args });
};
const listTools = () => {