write_project_file
Creates or replaces text files inside a Proteus .pdsprj project archive—such as firmware source—with optional backup and alternate output path. Close the project in Proteus first.
Instructions
Create or replace a text file inside the archive, e.g. firmware source under FIRMWARE/. ROOT.DSN and ROOT.CDB cannot be written raw (use the component tools). Close the project in Proteus first.
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>",
"entry": "<entry>",
"content": "<content>"
},
"name": "write_project_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a Proteus .pdsprj project file | |
| entry | Yes | ||
| backup | No | When overwriting, first copy the original to <file>.bak (default true) | |
| content | Yes | ||
| outputPath | No | Write to this path instead of overwriting the project |