MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / isReadOnlyToolAction

Function isReadOnlyToolAction

src/core/auto-approval/tools.ts:7–17  ·  view source on GitHub ↗
(tool: ClineSayTool)

Source from the content-addressed store, hash-verified

5}
6
7export function isReadOnlyToolAction(tool: ClineSayTool): boolean {
8 return [
9 "readFile",
10 "listFiles",
11 "listFilesTopLevel",
12 "listFilesRecursive",
13 "searchFiles",
14 "codebaseSearch",
15 "runSlashCommand",
16 ].includes(tool.tool)
17}

Callers 1

checkAutoApprovalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected