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
1 changed files with 4 additions and 5 deletions
|
|
@ -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