atelierb_write_file
Write or update B source files, C code, or Makefiles in the workspace, automatically creating backups before overwriting.
Instructions
Write or update the content of a B source file (.mch, .ref, .imp, etc.), C code (.c, .h), or Makefile in the workspace. Creates a backup by default.
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": {
"file_path": "<file_path>",
"content": "<content>"
},
"name": "atelierb_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The new content to write to the file | |
| file_path | Yes | Relative path from workspace root to the file | |
| create_backup | No | If true (default), creates a .bak backup before overwriting |