Detect Remote OS
os_detectIdentify the operating system and environment of an active SSH session to guide subsequent commands and configurations.
Instructions
Detects operating system and environment information
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": {
"sessionId": "<sessionId>"
},
"name": "os_detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | SSH session ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arch | Yes | ||
| init | Yes | ||
| shell | Yes | ||
| distro | Yes | ||
| tempDir | No | ||
| version | Yes | ||
| platform | Yes | ||
| defaultShell | No | ||
| packageManager | Yes |