bricks_find_element
Search for page elements by type, text content, or CSS class. Returns matching elements with IDs, settings summary, and parent chain.
Instructions
Search elements within a page by type, text content, or CSS class. Returns matching elements with their IDs, settings summary, and parent chain.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_id": "<post_id>"
},
"name": "bricks_find_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site key for multi-site support. Available: main. Defaults to "main". | |
| post_id | Yes | The page/post ID | |
| post_type | No | Post type slug. Use "pages" for pages, "posts" for posts, or any registered CPT slug (e.g., "product", "portfolio"). Defaults to "pages". | |
| element_type | No | Filter by element type name (e.g., "heading", "button") | |
| text_search | No | Search for text content within element settings | |
| css_class | No | Filter by CSS class name |