fix: browser_tabs select action with index 0 failing due to falsy check (#964)
This commit is contained in:
@@ -49,7 +49,7 @@ const browserTabs = defineTool({
|
||||
return;
|
||||
}
|
||||
case 'select': {
|
||||
if (!params.index)
|
||||
if (params.index === undefined)
|
||||
throw new Error('Tab index is required');
|
||||
await context.selectTab(params.index);
|
||||
response.setIncludeSnapshot();
|
||||
|
||||
Reference in New Issue
Block a user