Write File
writeCreate or overwrite a meaningful text file inside the workspace with parent directory creation and returns the resulting unified diff.
Instructions
Create or overwrite a meaningful text file inside the workspace. Returns a unified diff; do not create empty placeholder files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to workspace root. | |
| content | Yes | Complete file contents to write. | |
| overwrite | No | Allow overwriting existing files. Default: true. | |
| task_mode | No | Optional Task Router mode override for this write. | |
| create_dirs | No | Create parent directories if missing. Default: true. | |
| workspace_id | No | Optional workspace id. When omitted, CodexPro binds the authoritative conversation workspace automatically; an explicit unknown or mismatched id is rejected. | |
| conversation_id | No | Connector conversation id bound to this workspace. Modern MCP injects it automatically; side-effecting tools require it to match the authoritative binding. | |
| task_instruction | No | Optional original user task for Task Router mode control. | |
| workspace_generation | No | Optional authoritative workspace generation. When omitted, CodexPro injects the conversation-bound generation; an explicit stale generation is rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_result | Yes |