search_global_source_elements
Search and filter elements within a WebCake global source by ID, text, type, bindings, events, or custom classes to locate storefront components for editing or validation.
Instructions
Search/filter elements within a global source. No component param needed. Examples:
Find all buttons: type="button"
Find by class: custom_class="hero"
Find text: text="subscribe"
Data-bound only: has_bind=true
With events: has_events=true
With custom class: has_custom_class=true
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": {
"global_source_id": "<global_source_id>"
},
"name": "search_global_source_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Filter by element ID substring (e.g. 'TEXT', 'BUTTON-3') | |
| text | No | Filter by text content substring | |
| type | No | Filter by element type (e.g. 'text', 'button', 'image', 'container', 'section') | |
| limit | No | Max results (default 50) | |
| has_bind | No | Only elements with data bindings | |
| component | No | Component hint for faster lookup (e.g. "popup", "cart-droppable") | |
| has_events | No | Only elements with events | |
| custom_class | No | Filter by custom class substring | |
| global_source_id | Yes | Global source ID | |
| has_custom_class | No | Only elements with custom class |