create_file
Create a new UTF-8 text file within an active Direct session, revalidating the target path and blocking sensitive content so existing files remain untouched.
Instructions
Create a new bounded UTF-8 text file inside an active Direct session. The target and its parent are revalidated, sensitive content is blocked, and existing targets are never overwritten.
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": {
"session_id": "<session_id>",
"path": "<path>",
"content": "<content>"
},
"name": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | New repository-relative file path. | |
| content | Yes | UTF-8 text content subject to Direct size and sensitive-content guards. | |
| review_id | No | Fresh review ID for this exact create proposal when required. | |
| session_id | Yes |