Make ui.resourceUri optional (for tools that just need visibility) (#210)
* Make ui.resourceUri optional (for tools that just need visibility) * chore: regenerate schemas for optional resourceUri
This commit is contained in:
parent
773943cad1
commit
97990b6b28
3 changed files with 4 additions and 5 deletions
1
src/generated/schema.json
generated
1
src/generated/schema.json
generated
|
|
@ -4047,7 +4047,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"required": ["resourceUri"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"McpUiToolResultNotification": {
|
||||
|
|
|
|||
4
src/generated/schema.ts
generated
4
src/generated/schema.ts
generated
|
|
@ -484,12 +484,12 @@ export const McpUiToolVisibilitySchema = z
|
|||
*/
|
||||
export const McpUiToolMetaSchema = z.object({
|
||||
/**
|
||||
* URI of the UI resource to display for this tool.
|
||||
* URI of the UI resource to display for this tool, if any.
|
||||
* This is converted to `_meta["ui/resourceUri"]`.
|
||||
*
|
||||
* @example "ui://weather/widget.html"
|
||||
*/
|
||||
resourceUri: z.string(),
|
||||
resourceUri: z.string().optional(),
|
||||
/**
|
||||
* @description Who can access this tool. Default: ["model", "app"]
|
||||
* - "model": Tool visible to and callable by the agent
|
||||
|
|
|
|||
|
|
@ -549,12 +549,12 @@ export type McpUiToolVisibility = "model" | "app";
|
|||
*/
|
||||
export interface McpUiToolMeta {
|
||||
/**
|
||||
* URI of the UI resource to display for this tool.
|
||||
* URI of the UI resource to display for this tool, if any.
|
||||
* This is converted to `_meta["ui/resourceUri"]`.
|
||||
*
|
||||
* @example "ui://weather/widget.html"
|
||||
*/
|
||||
resourceUri: string;
|
||||
resourceUri?: string;
|
||||
/**
|
||||
* @description Who can access this tool. Default: ["model", "app"]
|
||||
* - "model": Tool visible to and callable by the agent
|
||||
|
|
|
|||
Loading…
Reference in a new issue