Skip to main content

Module write

Module write 

Source
Expand description

Write tool: create or overwrite a file under the mutation queue.

Ports .references/pi/packages/coding-agent/src/core/tools/write.ts. Success text reports a JS-style UTF-16 code-unit length as “bytes”.

Structs§

WriteTool
Agent tool that writes UTF-8 file contents under the mutation queue.
WriteToolInput
TypeBox-compatible write arguments (fixture write.json).
WriteToolOptions
Options for WriteTool.

Functions§

create_write_tool
Builds an Arc<dyn AgentTool> write tool for cwd.

Type Aliases§

WriteToolDetails
Write tool has no structured details payload.