Run a machine action
RunMachineActionOne machine action: add or remove the person's SSH public key (for SSH and SFTP to their projects' containers: Service.ssh_command), end a session, schedule or cancel a restart. Returns the machine.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "RunMachineAction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | The workspace: its id or name (ListWorkspaces). Omit when the account has one. | |
| add_ssh_key | No | label: one line, ≤100 chars; empty = the key's comment. An existing key gets the new label. | |
| cancel_restart | No | True = cancels the scheduled restart. | |
| end_session_id | No | A Machine.sessions id: ends it now (its key can open new ones until removed). NOT_FOUND = ended. | |
| restart_machine | No | Containers come back per restart policy. A new call before the restart replaces it; after (Machine.boot_time changed), restarts again. | |
| remove_ssh_key_fingerprint | No | A Machine.ssh_keys fingerprint; its sessions end. NOT_FOUND = no such key. |