Write file
write_fileCreate or overwrite files in an app, automatically generating parent directories, to scaffold, edit, and deploy full-stack applications.
Instructions
Create or overwrite a file in an app. Parent directories are created automatically.
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": {
"app": "<app>",
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| path | Yes | Path relative to the app root | |
| content | Yes |