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.",
3744
+
"type": "string"
3745
+
},
3746
+
"visibility": {
3747
+
"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",
3748
+
"type": "array",
3749
+
"items": {
3750
+
"description": "Tool visibility scope - who can access the tool.",
* @description Tool visibility scope - who can access the tool.
429
+
*/
430
+
exportconstMcpUiToolVisibilitySchema=z
431
+
.union([z.literal("model"),z.literal("apps")])
432
+
.describe("Tool visibility scope - who can access the tool.");
433
+
434
+
/**
435
+
* @description UI-related metadata for tools.
436
+
*/
437
+
exportconstMcpUiToolMetaSchema=z.object({
438
+
/** @description URI of UI resource for rendering tool results. */
439
+
resourceUri: z
440
+
.string()
441
+
.optional()
442
+
.describe("URI of UI resource for rendering tool results."),
443
+
/**
444
+
* @description Who can access this tool. Default: ["model", "apps"]
445
+
* - "model": Tool visible to and callable by the agent
446
+
* - "apps": Tool callable by apps from this server only
447
+
*/
448
+
visibility: z
449
+
.array(McpUiToolVisibilitySchema)
450
+
.optional()
451
+
.describe(
452
+
'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',
453
+
),
454
+
});
455
+
427
456
/**
428
457
* @description Request to send a message to the host's chat interface.
429
458
* @see {@link app.App.sendMessage} for the method that sends this request
0 commit comments