copilot_apply
Writes a finished job's reviewed staged edits to disk using its changeSetHash, refusing if any file changed and reporting exactly what was committed if a write fails midway.
Instructions
Write a finished job's staged edits to disk. Requires the changeSetHash from copilot_changes, so only reviewed content is applied. Refuses before writing anything if a file changed on disk since the job read it; prepares every file before committing and reports exactly what was written if a commit fails midway. Single use per job. Apply only within the user's authorized scope.
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": {
"jobId": "<jobId>",
"changeSetHash": "<changeSetHash>"
},
"name": "copilot_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | ||
| changeSetHash | Yes |