{
  "name": "com.acme.edge.rotate_logs",
  "kind": "command",
  "title": "Rotate logs",
  "description": "Run the vendor log rotation tool.",
  "inputSchema": {
    "type": "object",
    "required": [
      "keep"
    ],
    "properties": {
      "keep": {
        "type": "integer",
        "minimum": 1,
        "maximum": 30
      }
    },
    "additionalProperties": false
  },
  "risk": "write",
  "privacy": "internal",
  "physical": false,
  "callers": [
    "human",
    "rule"
  ],
  "native": {
    "protocol": "process",
    "target": "local",
    "request": {
      "argv": [
        "/opt/acme/bin/logrotate",
        "--keep",
        "{{arguments.keep}}"
      ]
    },
    "timeoutMs": 2000
  }
}
