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
@@ -86,13 +95,104 @@ For parameters that accept files (FileData types):
86
95
- Required parameters are clearly marked and validated
87
96
`;
88
97
98
+
/**
99
+
* Usage instructions for dynamic mode (when DYNAMIC_SPACE_DATA is set)
100
+
* Simplified instructions focusing on discover/view_parameters/invoke workflow
101
+
*/
102
+
constDYNAMIC_USAGE_INSTRUCTIONS=`# Gradio Space Interaction
103
+
104
+
Dynamically use Gradio MCP Spaces. Discover available spaces, view their parameter schemas, and invoke them. Use "discover" to find recommended spaces for tasks.
105
+
106
+
## Available Operations
107
+
108
+
### discover
109
+
List recommended spaces and their categories.
110
+
111
+
**Example:**
112
+
\`\`\`json
113
+
{
114
+
"operation": "discover"
115
+
}
116
+
\`\`\`
117
+
118
+
### view_parameters
119
+
Display the parameter schema for a space's first tool.
120
+
121
+
**Example:**
122
+
\`\`\`json
123
+
{
124
+
"operation": "view_parameters",
125
+
"space_name": "evalstate/FLUX1_schnell"
126
+
}
127
+
\`\`\`
128
+
129
+
### invoke
130
+
Execute a space's first tool with provided parameters.
? 'Discover, inspect (view parameter schema) and dynamically invoke Gradio MCP Spaces to conduct ML Tasks including Image Generation, Background Removal, Text to Speech and more '+
177
+
'Call with no operation for full usage instructions.'
0 commit comments