mirror of
https://github.com/ChromeDevTools/chrome-devtools-mcp.git
synced 2026-11-04 15:00:11 +00:00
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:
1 parent
1a4eaba95b
commit
d0622d52d4
2 files changed
+2
-3
No files matched your search
@@ -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
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user