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
"description": "URI of UI resource for rendering tool results.",
1797
+
"type": "string"
1798
+
},
1799
+
"visibility": {
1800
+
"description": "Who can access this tool. Default: [\"model\", \"apps\"]\n- \"model\": Tool visible to and callable by the agent\n- \"apps\": Tool callable by apps from this server only",
1801
+
"type": "array",
1802
+
"items": {
1803
+
"description": "Tool visibility scope - who can access the tool.",
* @description Tool visibility scope - who can access the tool.
294
+
*/
295
+
exportconstMcpUiToolVisibilitySchema=z
296
+
.union([z.literal("model"),z.literal("apps")])
297
+
.describe("Tool visibility scope - who can access the tool.");
298
+
299
+
/**
300
+
* @description UI-related metadata for tools.
301
+
*/
302
+
exportconstMcpUiToolMetaSchema=z.object({
303
+
/** @description URI of UI resource for rendering tool results. */
304
+
resourceUri: z
305
+
.string()
306
+
.optional()
307
+
.describe("URI of UI resource for rendering tool results."),
308
+
/**
309
+
* @description Who can access this tool. Default: ["model", "apps"]
310
+
* - "model": Tool visible to and callable by the agent
311
+
* - "apps": Tool callable by apps from this server only
312
+
*/
313
+
visibility: z
314
+
.array(McpUiToolVisibilitySchema)
315
+
.optional()
316
+
.describe(
317
+
'Who can access this tool. Default: ["model", "apps"]\n- "model": Tool visible to and callable by the agent\n- "apps": Tool callable by apps from this server only',
318
+
),
319
+
});
320
+
292
321
/**
293
322
* @description Request to send a message to the host's chat interface.
294
323
* @see {@link app.App.sendMessage} for the method that sends this request
0 commit comments