File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 * SPDX-License-Identifier: Apache-2.0
55 */
66
7- import type { ResourceType } from 'puppeteer-core' ;
7+ import type { ResourceType } from 'puppeteer-core' ;
88import z from 'zod' ;
99
10- import { ToolCategories } from './categories.js' ;
11- import { defineTool } from './ToolDefinition.js' ;
10+ import { ToolCategories } from './categories.js' ;
11+ import { defineTool } from './ToolDefinition.js' ;
1212
1313const FILTERABLE_RESOURCE_TYPES = [
1414 'document' ,
@@ -56,7 +56,7 @@ export const listNetworkRequests = defineTool({
5656 . describe (
5757 'Page number to return (0-based). When omitted, returns the first page.' ,
5858 ) ,
59- resourceType : z
59+ resourceTypes : z
6060 . array (
6161 z . enum (
6262 FILTERABLE_RESOURCE_TYPES as unknown as [
@@ -74,7 +74,7 @@ export const listNetworkRequests = defineTool({
7474 response . setIncludeNetworkRequests ( true , {
7575 pageSize : request . params . pageSize ,
7676 pageIdx : request . params . pageIdx ,
77- resourceTypes : request . params . resourceType ,
77+ resourceTypes : request . params . resourceTypes ,
7878 } ) ;
7979 } ,
8080} ) ;
You can’t perform that action at this time.
0 commit comments