Skip to content

Commit 03bf6fe

Browse files
fix
1 parent f1701e3 commit 03bf6fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tools/memory.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ export const getNodeRetainers = defineTool({
146146
pageSize: zod.number().optional().describe('The page size for pagination.'),
147147
},
148148
handler: async (request, response, context) => {
149+
context.validatePath(request.params.filePath);
150+
149151
const retainers = await context.getHeapSnapshotRetainers(
150152
request.params.filePath,
151153
request.params.nodeId,

0 commit comments

Comments
 (0)