You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(tool.annotations?.openWorldHint)hints.push("Interacts with external systems");
63
+
64
+
if(hints.length>0){
65
+
result+=`**Hints:** ${hints.join(", ")}\n`;
66
+
}
67
+
68
+
// Add input schema
69
+
result+="\n**Input Schema:**\n";
70
+
result+="```json\n";
71
+
result+=JSON.stringify(tool.inputSchema,null,2);
72
+
result+="\n```\n\n";
73
+
74
+
// Add server ID
75
+
result+=`**Server:** ${tool.serverId}\n\n`;
76
+
77
+
// Add separator between tools
78
+
result+="---\n\n";
79
+
});
80
+
81
+
// Add usage instructions
82
+
result+=`## How to Use These Tools
83
+
84
+
To use a tool, include a tool call in your response using the following format:
85
+
86
+
\`\`\`
87
+
<tool name="TOOL_NAME" server="SERVER_ID">
88
+
{
89
+
"param1": "value1",
90
+
"param2": "value2"
91
+
}
92
+
</tool>
93
+
\`\`\`
94
+
95
+
Replace TOOL_NAME with the name of the tool you want to use, SERVER_ID with the server ID, and include the appropriate parameters as specified in the tool's input schema.
0 commit comments