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

Commit d0622d5

Browse files
authored
fix: remove endsWith for filePath in memory tools (#1041)
Looks like there is another incompatibility in JSON schema handling between MCP clients. Closes #1039
1 parent 1a4eaba commit d0622d5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/tool-reference.md

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

3-
# Chrome DevTools MCP Tool Reference (~7095 cl100k_base tokens)
3+
# Chrome DevTools MCP Tool Reference (~7084 cl100k_base tokens)
44

55
- **[Input automation](#input-automation)** (9 tools)
66
- [`click`](#click)

src/tools/memory.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export const takeMemorySnapshot = defineTool({
1919
schema: {
2020
filePath: zod
2121
.string()
22-
.describe('A path to a .heapsnapshot file to save the heapsnapshot to.')
23-
.endsWith('.heapsnapshot'),
22+
.describe('A path to a .heapsnapshot file to save the heapsnapshot to.'),
2423
},
2524
handler: async (request, response, context) => {
2625
const page = context.getSelectedPage();

0 commit comments

Comments
 (0)