create_file
Create new files in Replit workspaces by specifying a path and optional content, enabling AI assistants to manage file operations directly.
Instructions
Create a new file in a Replit workspace
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": {
"path": "<path>"
},
"name": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path for the new file | |
| content | No | Initial content for the file (default: empty) | |
| replId | No | Optional repl ID (uses active repl if not specified) |