(execCtx ExecutionContext, input any)
| 125 | } |
| 126 | |
| 127 | func (t *WriteFileTool) ValidateInput(execCtx ExecutionContext, input any) (bool, string) { |
| 128 | in := deref[WriteFileInput](input) |
| 129 | path := resolveToolPath(execCtx, in.FilePath) |
| 130 | return checkAllowedWriteRoots(path, execCtx["allowed_write_roots"]) |
| 131 | } |
| 132 | |
| 133 | func (t *WriteFileTool) Execute(_ context.Context, execCtx ExecutionContext, input any) (string, error) { |
| 134 | in := deref[WriteFileInput](input) |
nothing calls this directly
no test coverage detected