patch_file
Apply a unified diff patch to modify a file in your QuantConnect project. Specify the project ID and the patch in git diff format to update code precisely.
Instructions
Apply a patch (unified diff) to a file in a project.
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": {
"model": "<model>"
},
"name": "patch_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Indicate if the API request was successful. | |
| errors | No | List of errors with the API call. |