Write files
write_filesAtomically write or overwrite files in a test workspace, creating parent directories as needed. Ensures all-or-nothing updates, keeping paths relative to workspace.
Instructions
Writes or overwrites files in an existing workspace, creating parent directories as needed. Paths must be relative and stay inside the workspace. Either every file is written or none is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Map of workspace-relative path to file contents, e.g. {"src/index.js": "..."} | |
| workspaceId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filesWritten | Yes |