fix: browser_tabs select action with index 0 failing due to falsy check (#964)

This commit is contained in:
Sangjin Park
2025-08-29 07:36:31 +09:00
committed by GitHub
parent fc04de2be5
commit 7fb8b0dc3a
2 changed files with 14 additions and 1 deletions

View File

@@ -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();