Create new file
create_fileCreate a NEW file in the sandbox repository and commit it on the session's ronda branch (not pushed to GitHub until open_pr). Never overwrites: fails with FILE_ALREADY_EXISTS if anything exists at the path. Parent directories are created. Use apply_patch to change an existing file. 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": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | New file path relative to the repository root. Parent directories are created. Must not exist yet. | |
| 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 content of the new file (UTF-8). | |
| 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. |