MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / ValidateInput

Method ValidateInput

tools/builtin.go:127–131  ·  view source on GitHub ↗
(execCtx ExecutionContext, input any)

Source from the content-addressed store, hash-verified

125}
126
127func (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
133func (t *WriteFileTool) Execute(_ context.Context, execCtx ExecutionContext, input any) (string, error) {
134 in := deref[WriteFileInput](input)

Callers

nothing calls this directly

Calls 2

resolveToolPathFunction · 0.85
checkAllowedWriteRootsFunction · 0.85

Tested by

no test coverage detected