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§
- Write
Tool - Agent tool that writes UTF-8 file contents under the mutation queue.
- Write
Tool Input - TypeBox-compatible write arguments (fixture
write.json). - Write
Tool Options - Options for
WriteTool.
Functions§
- create_
write_ tool - Builds an
Arc<dyn AgentTool>write tool forcwd.
Type Aliases§
- Write
Tool Details - Write tool has no structured
detailspayload.