Skip to content

FileTools

Defined in: file/tools.ts:57

Named return type (rather than bare ToolSet) so destructuring a single tool out doesn’t trip noUncheckedIndexedAccess the way indexing into a Record<string, Tool> would.

editFile: Tool<{ find: string; path: string; replace: string; }, { bytesWritten: number; }>

Defined in: file/tools.ts:60


readFile: Tool<{ path: string; }, { content: string; }>

Defined in: file/tools.ts:58


writeFile: Tool<{ content: string; path: string; }, { bytesWritten: number; }>

Defined in: file/tools.ts:59