addedInput schema / properties / actions / items / properties / query_elements
Added value: +{
+ "additionalProperties": false,
+ "description": "Query elements on the current active page. Supports filtering by type, text, style, tag, attributes, component name, slot name. Supports scoped search, parent lookup, and multiple queries per call.",
+ "properties": {
+ "queries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "children_depth": {
+ "description": "Include N levels of children in each result. 0 = no children (default), -1 = all.",
+ "type": "number"
+ },
+ "component_filter": {
+ "additionalProperties": false,
+ "description": "Filter by component properties. Cannot be combined with element_filter.",
+ "properties": {
+ "component_name": {
+ "description": "Filter by component name. Case-insensitive substring match.",
+ "type": "string"
+ },
+ "slot_name": {
+ "description": "Filter by slot name. Case-insensitive substring match.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "element_filter": {
+ "additionalProperties": false,
+ "description": "Filter by element properties. Cannot be combined with component_filter.",
+ "properties": {
+ "attribute_name": {
+ "description": "Filter by attribute name. Case-insensitive exact match on attribute key.",
+ "type": "string"
+ },
+ "attribute_value": {
+ "description": "Filter by attribute value. Used with attribute_name. Case-insensitive substring match.",
+ "type": "string"
+ },
+ "style": {
+ "description": "Filter by style/class name. Case-insensitive substring match against any applied style name.",
+ "type": "string"
+ },
+ "tag": {
+ "description": "Filter by HTML tag. For Block/DOM elements. Case-insensitive exact match. e.g. \"section\", \"nav\", \"div\".",
+ "type": "string"
+ },
+ "text": {
+ "description": "Filter by text content. Case-insensitive substring match.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Filter by element type. Exact match. e.g. \"Heading\", \"Image\", \"Link\", \"Block\", \"DOM\", \"FormForm\".",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "element_id": {
+ "additionalProperties": false,
+ "description": "Filter by element ID. Exact match. Bypasses other filters — returns the element directly.",
+ "properties": {
+ "component": {
+ "type": "string"
+ },
+ "element": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "component",
+ "element"
+ ],
+ "type": "object"
+ },
+ "label": {
+ "description": "A label to identify this query in the results.",
+ "type": "string"
+ },
+ "limit": {
+ "description": "Max results for this query. Default: 50, Max: 200.",
+ "maximum": 200,
+ "minimum": 1,
+ "type": "number"
+ },
+ "return_parent": {
+ "description": "Instead of returning matched elements, return their parent. \"parent\" = immediate parent. \"ancestor\" = any ancestor whose subtree contains matches.",
+ "enum": [
+ "parent",
+ "ancestor"
+ ],
+ "type": "string"
+ },
+ "scope_element_id": {
+ "additionalProperties": false,
+ "description": "Scope search to descendants of this element (element itself excluded).",
+ "properties": {
+ "component": {
+ "type": "string"
+ },
+ "element": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "component",
+ "element"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "queries"
+ ],
+ "type": "object"
+}