{
  "name": "com.acme.modem.signal",
  "kind": "command",
  "title": "Modem signal quality",
  "description": "Read signal strength with an AT command.",
  "inputSchema": {
    "type": "object",
    "required": [],
    "properties": {},
    "additionalProperties": false
  },
  "risk": "read",
  "privacy": "internal",
  "physical": false,
  "callers": [
    "human",
    "peer",
    "ai",
    "rule"
  ],
  "native": {
    "protocol": "at",
    "target": "serial:/dev/ttyUSB2",
    "request": "AT+CSQ",
    "timeoutMs": 2000,
    "response": {
      "extract": {
        "rssi": {
          "from": "regex:\\+CSQ: (\\d+)"
        }
      }
    }
  }
}
