Clone Element
clone_elementExtracts a selected page element's DOM, CSS, asset URLs, and standalone renderable document for UI lifting, bug reproduction, or training data.
Instructions
Pixel-approx clone: DOM+CSS+asset URLs+renderable doc. ~80% fidelity. For UI
lifting / bug repro / training pairs. Use when you need the RENDER not just text.
Ex: clone_element('t0', '.product-card') → {"_untrusted":true,"html":"...","css":"...","doc":"","assets":[...]}
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": {
"tab_id": "<tab_id>",
"selector": "<selector>"
},
"name": "clone_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| selector | Yes | ||
| max_doc_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||