source_write
Writes main.c for a Proteus project, verifying existing source with expected SHA-256 and creating a backup before changes.
Instructions
Write main.c; existing source requires matching expected_sha256 and is backed up.
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": {
"project": "<project>",
"source": "<source>"
},
"name": "source_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| project | Yes | ||
| expected_sha256 | No |