orbstack_machine_stop
Stop a specific Linux virtual machine in OrbStack on macOS to manage system resources or halt operations.
Instructions
停止指定的 Linux 机器。
Args: params: 包含机器名称
Returns: str: 停止结果
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Implementation Reference
- src/orbstack_mcp/server.py:473-485 (handler)The handler function `orbstack_machine_stop` which executes the orb command to stop a machine.
async def orbstack_machine_stop(params: MachineNameInput) -> str: """停止指定的 Linux 机器。 Args: params: 包含机器名称 Returns: str: 停止结果 """ code, stdout, stderr = await _run_orb(["stop", params.name]) if code != 0: return _format_error(stderr) return f"机器 '{params.name}' 已停止" - src/orbstack_mcp/server.py:463-472 (registration)The MCP tool registration for `orbstack_machine_stop`.
@mcp.tool( name="orbstack_machine_stop", annotations={ "title": "停止 Linux 机器", "readOnlyHint": False, "destructiveHint": False, "idempotentHint": True, "openWorldHint": False, }, )