{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Prepare websocket server for live tail.","properties":{"path":{"type":"object","properties":{"account_id":{"type":"string","description":"Your Cloudflare account ID."}},"required":["account_id"],"additionalProperties":false},"body":{"type":"object","properties":{"filterCombination":{"description":"Set a flag to describe how to combine the filters on the query.","type":"string","default":"and","enum":["and","or","AND","OR"]},"filters":{"description":"Apply filters to the query. Supports nested groups via kind: 'group'.","type":"array","items":{"allOf":[{"$ref":"#/definitions/workers-observability_filter_node"},{"anyOf":[{"description":"A group node that nests child filters combined with a logical operator.","properties":{"filterCombination":{"description":"Logical operator for combining child filters: 'and' (all must match) or 'or' (any must match).","type":"string","enum":["and","or","AND","OR"]},"filters":{"description":"Child filter nodes. Each can be a leaf filter or another nested group.","type":"array","items":{"$ref":"#/definitions/workers-observability_filter_node"},"minItems":1},"kind":{"description":"Discriminator indicating this is a nested filter group.","type":"string","enum":["group"]}},"required":["kind","filterCombination","filters"],"type":"object"},{"$ref":"#/definitions/workers-observability_filter_leaf"}],"description":"Supports nested groups via kind: 'group'. Maximum nesting depth is 4."}]},"default":[]},"scriptId":{"type":"string"}}}},"required":["path","body"],"additionalProperties":false,"definitions":{"workers-observability_filter_node":{"description":"Supports nested groups via kind: 'group'.","type":"object","anyOf":[{"properties":{"filterCombination":{"type":"string","enum":["and","or","AND","OR"]},"filters":{"type":"array","items":{"$ref":"#/definitions/workers-observability_filter_node"},"minItems":1},"kind":{"type":"string","enum":["group"]}},"required":["kind","filterCombination","filters"],"type":"object"},{"$ref":"#/definitions/workers-observability_filter_leaf"}]},"workers-observability_filter_leaf":{"description":"A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.","type":"object","properties":{"key":{"description":"Filter field name. Use verified keys from previous query results or the keys endpoint. Common keys include $metadata.service, $metadata.origin, $metadata.trigger, $metadata.message, and $metadata.error.","type":"string"},"kind":{"description":"Discriminator for leaf filter nodes. Always 'filter' when present; may be omitted.","type":"string","enum":["filter"]},"operation":{"description":"Comparison operator. String operators: includes, not_includes, starts_with, ends_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.","type":"string","enum":["includes","not_includes","starts_with","ends_with","regex","exists","is_null","in","not_in","eq","neq","gt","gte","lt","lte","=","!=",">",">=","<","<=","INCLUDES","DOES_NOT_INCLUDE","MATCH_REGEX","EXISTS","DOES_NOT_EXIST","IN","NOT_IN","STARTS_WITH","ENDS_WITH"]},"type":{"description":"Data type of the filter field. Must match the actual type of the key being filtered.","type":"string","enum":["string","number","boolean"]},"value":{"description":"Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. Regex uses RE2 syntax (no lookaheads/lookbehinds).","anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"required":["key","operation","type"]}}},"name":"Prepare live tail","id":"cloudflare.telemetry.live-tail.post","example":{"path":{"account_id":"example"},"body":{}},"maxRequests":1,"summary":false}}