vm_workspace_diff
Take a workspace's changes as a git patch.
Takes what the guest changed in the machine's workspace since the push, as a job: a patch that git apply takes on the folder as it was pushed, and a report of every change, the files that can run something on this Mac once applied (hooks, agent settings, CI, build scripts), links, executables, what was left out, and names that collide by case or by Unicode normalization. Diffs are cumulative. A stopped machine starts for it and stops after, as the lifecycle scope allows, and is deleted then when it is ephemeral. Paths, names and the patch come from the guest: read the report before applying anything.
- Profiles
- operator, full
- Read-only
- No
- Destructive
- No
- Idempotent
- No
- Open world
- No
- Runs as a task
- Optional
Parameters
output_pathstringAn absolute path on this Mac for the patch; default ~/Library/Application Support/OSMates/Workspaces.
vmstringRequiredThe machine's name or identifier, as vm_list shows it.
wait_secondsintegerSeconds to wait before answering with a job to follow; default 20.
From 0 to 30.
Output
The result's structured content is one of these objects.
JSON Schema: /schemas/0/mcp/tools/vm_workspace_diff/output.json
running
jobstringRequiredstatestringRequiredOne of
running.
workspaceDiff
jobstringRequiredpatchobjectRequiredpatch.bytesintegerRequiredAt least 0.
patch.encodingstringOne of
base64.patch.guestDatastringRequiredpatch.shownintegerRequiredAt least 0.
patchBytesintegerRequiredAt least 0.
patchPathstringRequiredreportobjectRequiredreport.addedintegerRequiredAt least 0.
report.collisionsarray of objectsRequiredreport.cutbooleanRequiredreport.deletedintegerRequiredAt least 0.
report.executablesarray of objectsRequiredreport.leftOutarray of objectsRequiredreport.linksarray of objectsRequiredreport.modifiedintegerRequiredAt least 0.
report.returnPathsarray of objectsRequiredreport.scannedintegerRequiredAt least 0.
reportPathstringRequired
Fields nested deeper are in the schema.