write_file
Safely create or update files inside NSTOK repositories with audit logging and optional overwrite control.
Instructions
Safely write or update a file inside an NSTOK repository with audit logging.
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": {
"repository": "<repository>",
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to file within the repository | |
| content | Yes | Full file content to write | |
| overwrite | No | Whether to overwrite if file already exists | |
| repository | Yes | Repository name (e.g. "Nstok-app-w", "Nstok-feature-sales-report") |