Function
runWrite
(p: ToolProps<typeof WriteTool>)
Source from the content-addressed store, hash-verified
| 330 | } |
| 331 | |
| 332 | function runWrite(p: ToolProps<typeof WriteTool>): ToolInline { |
| 333 | return { |
| 334 | icon: "←", |
| 335 | title: `Write ${toolPath(p.input.filePath)}`, |
| 336 | mode: "block", |
| 337 | body: p.frame.status === "completed" ? text(p.frame.state.output) : undefined, |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | function runWebfetch(p: ToolProps<typeof WebFetchTool>): ToolInline { |
| 342 | const url = p.input.url ?? "" |
Callers
nothing calls this directly
Tested by
no test coverage detected