File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,16 @@ export function getCustomTools(workspaceId?: string): CustomToolDefinition[] {
110110}
111111
112112/**
113- * Get a specific custom tool from the query cache by ID (for non-React code)
113+ * Get a specific custom tool from the query cache by ID or title (for non-React code)
114+ * Custom tools are referenced by title in the system (custom_${title}), so title lookup is required.
114115 * If workspaceId is not provided, extracts it from the current URL
115116 */
116117export function getCustomTool (
117- toolId : string ,
118+ identifier : string ,
118119 workspaceId ?: string
119120) : CustomToolDefinition | undefined {
120121 const tools = getCustomTools ( workspaceId )
121- return tools . find ( ( tool ) => tool . id === toolId )
122+ return tools . find ( ( tool ) => tool . id === identifier || tool . title === identifier )
122123}
123124
124125/**
You can’t perform that action at this time.
0 commit comments