(input: FindToolInput, context: ToolContext)
| 105 | } |
| 106 | |
| 107 | export async function findFilesTool(input: FindToolInput, context: ToolContext): Promise<ToolResponse> { |
| 108 | if (input.path) resolveAllowedPath(input.path, context.cwd, [context.root]); |
| 109 | const tool = createFindTool(context.cwd); |
| 110 | |
| 111 | return runTool((params) => tool.execute("find_files", params), input, context); |
| 112 | } |
| 113 | |
| 114 | export async function listDirectoryTool(input: LsToolInput, context: ToolContext): Promise<ToolResponse> { |
| 115 | if (input.path) resolveAllowedPath(input.path, context.cwd, [context.root]); |
no test coverage detected