{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Initiate commands for up to 10 devices per account.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/digital-experience-monitoring_account_identifier","description":"Unique Cloudflare account ID."}},"required":["account_id"],"additionalProperties":false},"body":{"type":"object","properties":{"commands":{"description":"List of device-level commands to execute","type":"array","items":{"properties":{"args":{"description":"Command arguments. Allowed fields depend on `type`.","type":"object","oneOf":[{"additionalProperties":false,"properties":{"test-all-routes":{"description":"Test an IP address from all included or excluded ranges. Essentially the same as running 'route get <ip>' and collecting the results. This option may increase the time taken to collect the warp-diag.","type":"boolean","default":true}},"title":"warp-diag args","type":"object"},{"additionalProperties":false,"properties":{"max-file-size-mb":{"description":"Maximum file size (in MB) for the capture file. If the capture artifact exceeds the specified max file size, it will NOT be uploaded.","type":"number","default":5,"minimum":1},"packet-size-bytes":{"description":"Maximum number of bytes to save for each packet","type":"number","default":160,"minimum":1},"time-limit-min":{"description":"Limit on capture duration (in minutes)","type":"number","default":5,"minimum":1}},"title":"pcap args","type":"object"},{"additionalProperties":false,"properties":{"interfaces":{"description":"List of interfaces to run the speed test on","type":"array","items":{"enum":["default","tunnel"],"type":"string"}}},"title":"speed-test args","type":"object"}]},"device_id":{"description":"Unique identifier for the physical device","type":"string"},"registration_id":{"description":"Unique identifier for the device registration. Required for multi-user devices to target the correct user session.","type":"string"},"type":{"description":"Type of command to execute on the device","type":"string","enum":["pcap","speed-test","warp-diag"]},"user_email":{"description":"Email tied to the device","type":"string"}},"required":["device_id","user_email","type"],"type":"object"},"maxItems":20}},"required":["commands"]}},"required":["path","body"],"additionalProperties":false,"definitions":{"digital-experience-monitoring_account_identifier":{"description":"Unique identifier linked to an account.","type":"string","maxLength":32,"examples":["01a7362d577a6c3019a474fd6f485823"]}}},"name":"Create account commands","id":"cloudflare.post-commands","example":{"path":{"account_id":"01a7362d577a6c3019a474fd6f485823"},"body":{"commands":[]}},"maxRequests":1,"summary":false}}