fix: remove endsWith for filePath in memory tools (#1041)

Looks like there is another incompatibility in JSON schema handling
between MCP clients.

Closes https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/1039
This commit is contained in:
Alex Rudenko authored and GitHub committed 2026-02-25 15:27:58 +01:00
1 parent 1a4eaba95b
commit d0622d52d4
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->
# Chrome DevTools MCP Tool Reference (~7095 cl100k_base tokens)
# Chrome DevTools MCP Tool Reference (~7084 cl100k_base tokens)
- **[Input automation](#input-automation)** (9 tools)
- [`click`](#click)
+1 -2
View File
@@ -19,8 +19,7 @@ export const takeMemorySnapshot = defineTool({
schema: {
filePath: zod
.string()
.describe('A path to a .heapsnapshot file to save the heapsnapshot to.')
.endsWith('.heapsnapshot'),
.describe('A path to a .heapsnapshot file to save the heapsnapshot to.'),
},
handler: async (request, response, context) => {
const page = context.getSelectedPage();