We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1701e3 commit 03bf6feCopy full SHA for 03bf6fe
1 file changed
src/tools/memory.ts
@@ -146,6 +146,8 @@ export const getNodeRetainers = defineTool({
146
pageSize: zod.number().optional().describe('The page size for pagination.'),
147
},
148
handler: async (request, response, context) => {
149
+ context.validatePath(request.params.filePath);
150
+
151
const retainers = await context.getHeapSnapshotRetainers(
152
request.params.filePath,
153
request.params.nodeId,
0 commit comments