Replace whole file
write_fileWrite a file's ENTIRE content, replacing whatever is there (or creating it), and commit it on the session's ronda branch (not pushed to GitHub until open_pr). Overwrites existing content, so prefer apply_patch for edits and create_file for new files; use this only to rewrite a file wholesale. Writing identical content is a no-op. Changes take effect in the isolated sandbox, where the project's code (including package.json scripts you change) can run via run_script. Optionally pass anchors (up to 3) and anchorRoute: visible text on the changed page that points at the change, used by the Show me link; ronda checks each against the page and the change and drops any it cannot find.
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": {
"sessionId": "<sessionId>",
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the repository root. Parent directories are created. | |
| anchors | No | Up to 3 pieces of visible page text that point at the change, used by the Show me link; ronda checks each against the page and the change and drops any it cannot find. | |
| content | Yes | Full new file content (UTF-8). Replaces the file if it exists. | |
| context | No | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| message | No | Short description; used as the commit message and edit summary. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| sessionId | Yes | The ronda session id, from open_session or list_sessions. | |
| anchorRoute | No | Page path the anchors are on, e.g. '/pricing'. Omit for the page ronda infers from the change. |