Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleWriteFile ¶ added in v1.2.0
func HandleWriteFile( ctx context.Context, req *mcp.CallToolRequest, args WriteFileArgs, ) (*mcp.CallToolResult, any, error)
HandleWriteFile implements the write_file tool handler. It resolves the node's frontmatter from the provided logical name, validates the target path against the implements list and the project root, then writes the file to disk.
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 defines the input parameters for the write_file tool.
Click to show internal directories.
Click to hide internal directories.