vm_workspace_push
Copy a folder into a virtual machine as its workspace.
Copies a folder of this Mac into a running machine as a job, as its one workspace, whose changes vm_workspace_diff takes back as a git patch. A git work tree's top goes in with its tracked files and the untracked ones no rule ignores, and a .git of its objects, refs, hooks and a configuration without credentials; any other folder goes in whole. A folder a machine can write through a share is refused. replace forgets the workspace the machine had.
- Profiles
- operator, full
- Read-only
- No
- Destructive
- No
- Idempotent
- No
- Open world
- No
- Runs as a task
- Optional
Parameters
guest_pathstringAn absolute path in the guest that does not exist or is an empty folder; default the account's home and the folder's name.
host_pathstringRequiredAn absolute path of a folder on this Mac.
replacebooleanForget the machine's workspace first; default false.
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_push/output.json
running
jobstringRequiredstatestringRequiredOne of
running.
workspace
bytesintegerRequiredAt least 0.
commitstringfilesintegerRequiredfolderstringRequiredguestPathstringRequiredhistoryLeftOutstringhooksPathstringidstring (uuid)RequiredisGitWorkTreebooleanRequiredjobstringRequiredlastDiffobjectlastDiff.changesintegerRequiredlastDiff.patchPathstringRequiredlastDiff.returnPathsintegerRequiredlastDiff.takenAtstring (date-time)RequiredleftOutarray of objectsRequiredleftOut[].pathstringRequiredleftOut[].reasonstringRequiredobjectFormatstringRequiredOne of
sha1,sha256.outstandingstringpushedAtstring (date-time)RequiredsnapshotsBeforearray of strings (uuid)Required