Request an invite
Docs menu

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_pathstring

An 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_pathstringRequired

An absolute path of a folder on this Mac.

replaceboolean

Forget the machine's workspace first; default false.

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_push/output.json

running

jobstringRequired
statestringRequired

One of running.

workspace

bytesintegerRequired

At least 0.

commitstring
filesintegerRequired
folderstringRequired
guestPathstringRequired
historyLeftOutstring
hooksPathstring
idstring (uuid)Required
isGitWorkTreebooleanRequired
jobstringRequired
lastDiffobject
lastDiff.changesintegerRequired
lastDiff.patchPathstringRequired
lastDiff.returnPathsintegerRequired
lastDiff.takenAtstring (date-time)Required
leftOutarray of objectsRequired
leftOut[].pathstringRequired
leftOut[].reasonstringRequired
objectFormatstringRequired

One of sha1, sha256.

outstandingstring
pushedAtstring (date-time)Required
snapshotsBeforearray of strings (uuid)Required

Report a problem with this page