Execute computer command
shell_executeRuns a short PowerShell command on the target computer and returns stdout/stderr plus exit_code. Prefer purpose-built tools when they cover the intent: filesystem_search for ordinary code/text search (not shell rg/grep/findstr); git_status / git_diff / git_log for inspect-only Git; git_fetch / git_push / git_worktree_create for those exact Git writes. Keep shell_execute for work those tools cannot express—examples include git add/commit, custom Git pipelines, one-off diagnostics, and short scripts. If a shell search is required, honor that tool's documented no-match exit code instead of treating every exit code 1 as success. For builds, installs, rendering, data processing, or any command that may run longer than about one minute, prefer process_start and process_read_output so the OS process outlives a single MCP request. This tool can mutate the computer; follow the AI host's own confirmation rules. ailinkany.com does not add a separate risk-judgment layer, forge read-only hints, or claim Host approval is guaranteed. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "shell_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The PowerShell command to execute. When workspace_id is passed and the device has OS write enforcement enabled, the OS restricts this command to writing only inside that workspace root (plus a private temp dir); writes to other directories, including another session's worktree, are denied and reads stay allowed. If enforcement is enabled but the sandbox cannot start, the call fails with SHELL_WORKSPACE_SANDBOX_UNAVAILABLE instead of running unrestricted. If enforcement is not enabled the command runs unrestricted and the result says os_enforcement=false. Without workspace_id the command runs unrestricted as before. | |
| device_id | No | Target computer device_id. Omit when only one computer is paired. | |
| device_name | No | Computer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer. | |
| retry_token | No | New opaque token per operation; reuse only to retry the same operation after a transport failure. No user content. | |
| workflow_id | No | Optional workflow id; pass together with ai_session_id. | |
| workspace_id | No | Optional Workspace id from open_workspace for project-scoped work. | |
| ai_session_id | No | Optional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work. | |
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||