Write file
write_fileCreate or replace a file with the full content. Saved at once; the preview updates.
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": {
"project_id": "<project_id>",
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A path inside the project, such as index.html or js/game.js. | |
| content | Yes | ||
| project_id | Yes | The project's id, from list_projects or create_project. |