Interact with companion devices (phones, laptops, headless servers) connected to Suzent.
The Nodes skill lets you control remote companion devices connected to the Suzent server. Nodes connect via WebSocket and advertise capabilities (commands) you can invoke.
In sandbox mode, the suzent CLI is not available. Use the REST API via $SUZENT_BASE_URL.
Use this skill to:
| Action | Method | Path |
|---|---|---|
| List connected nodes | GET | /nodes |
| Describe node | GET | /nodes/{node_id_or_name} |
| Invoke command |
POST |
/nodes/{node_id_or_name}/invoke |
import os
import requests
base = os.environ["SUZENT_BASE_URL"]
# 1) List nodes
nodes_resp = requests.get(f"{base}/nodes", timeout=30)
nodes_resp.raise_for_status()
nodes = nodes_resp.json().get("nodes", [])
if not nodes:
print("No nodes connected")