Documentation
¶
Overview ¶
Package write_file implements the write_file MCP tool handler.
The tool accepts a logical name, a relative file path, and file content. It resolves the node's frontmatter from the logical name, validates the target path against the node's implements list and the project root, then writes the file to disk.
Spec ref: ROOT/tech_design/internal/tools/write_file § "Intent"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WriteFileArgs ¶
type WriteFileArgs struct {
LogicalName string `json:"logical_name" jsonschema:"Logical name of the node whose implements list authorizes the write."`
Path string `json:"path" jsonschema:"Relative file path from project root."`
Content string `json:"content" jsonschema:"Complete file content to write."`
}
WriteFileArgs holds the input parameters for the write_file tool.
Spec ref: ROOT/tech_design/internal/tools/write_file § "WriteFileArgs type"
Click to show internal directories.
Click to hide internal directories.