Request an invite
Docs menu

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_pathstring

An absolute path on this Mac for the patch; default ~/Library/Application Support/OSMates/Workspaces.

vmstringRequired

The machine's name or identifier, as vm_list shows it.

wait_secondsinteger

Seconds 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

jobstringRequired
statestringRequired

One of running.

workspaceDiff

jobstringRequired
patchobjectRequired
patch.bytesintegerRequired

At least 0.

patch.encodingstring

One of base64.

patch.guestDatastringRequired
patch.shownintegerRequired

At least 0.

patchBytesintegerRequired

At least 0.

patchPathstringRequired
reportobjectRequired
report.addedintegerRequired

At least 0.

report.collisionsarray of objectsRequired
report.cutbooleanRequired
report.deletedintegerRequired

At least 0.

report.executablesarray of objectsRequired
report.leftOutarray of objectsRequired
report.linksarray of objectsRequired
report.modifiedintegerRequired

At least 0.

report.returnPathsarray of objectsRequired
report.scannedintegerRequired

At least 0.

reportPathstringRequired

Fields nested deeper are in the schema.

Report a problem with this page