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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>",
"files": "<files>"
},
"name": "write_files"
}
}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 |