Documentation
¶
Overview ¶
Package filewritetool implements the Write tool — writes a file to the local filesystem. Mirrors src/tools/FileWriteTool/FileWriteTool.ts.
M2 scope: create new files and overwrite existing ones (UTF-8, LF line endings). Parent directory creation, LSP notification, and the file-history side-effects land in later milestones.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tool ¶
type Tool struct{}
Tool implements the Write tool.
func (*Tool) Description ¶
Description is the prompt text the model sees.
func (*Tool) InputSchema ¶
func (*Tool) InputSchema() json.RawMessage
InputSchema is the JSON Schema sent to the model.
func (*Tool) IsConcurrencySafe ¶
func (*Tool) IsConcurrencySafe(json.RawMessage) bool
IsConcurrencySafe: concurrent writes to the same path are unsafe.
func (*Tool) IsReadOnly ¶
func (*Tool) IsReadOnly(json.RawMessage) bool
IsReadOnly: writing a file is never read-only.
Click to show internal directories.
Click to hide internal directories.