豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 796d6f2

Browse files
authored
docs: document network response and request extensions (#1887)
Extensions are enforced since #1867
1 parent 54cfc7e commit 796d6f2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/tool-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run gen' to update-->
22

3-
# Chrome DevTools MCP Tool Reference (~6951 cl100k_base tokens)
3+
# Chrome DevTools MCP Tool Reference (~6963 cl100k_base tokens)
44

55
- **[Input automation](#input-automation)** (9 tools)
66
- [`click`](#click)
@@ -295,8 +295,8 @@
295295
**Parameters:**
296296

297297
- **reqid** (number) _(optional)_: The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel.
298-
- **requestFilePath** (string) _(optional)_: The absolute or relative path to save the request body to. If omitted, the body is returned inline.
299-
- **responseFilePath** (string) _(optional)_: The absolute or relative path to save the response body to. If omitted, the body is returned inline.
298+
- **requestFilePath** (string) _(optional)_: The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.
299+
- **responseFilePath** (string) _(optional)_: The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.
300300

301301
---
302302

src/bin/cliDefinitions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,14 @@ export const commands: Commands = {
214214
name: 'requestFilePath',
215215
type: 'string',
216216
description:
217-
'The absolute or relative path to save the request body to. If omitted, the body is returned inline.',
217+
'The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.',
218218
required: false,
219219
},
220220
responseFilePath: {
221221
name: 'responseFilePath',
222222
type: 'string',
223223
description:
224-
'The absolute or relative path to save the response body to. If omitted, the body is returned inline.',
224+
'The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.',
225225
required: false,
226226
},
227227
},

src/tools/network.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ export const getNetworkRequest = definePageTool({
104104
.string()
105105
.optional()
106106
.describe(
107-
'The absolute or relative path to save the request body to. If omitted, the body is returned inline.',
107+
'The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.',
108108
),
109109
responseFilePath: zod
110110
.string()
111111
.optional()
112112
.describe(
113-
'The absolute or relative path to save the response body to. If omitted, the body is returned inline.',
113+
'The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.',
114114
),
115115
},
116116
handler: async (request, response, context) => {

0 commit comments

Comments
 (0)