cdp_set_value
Set values in form fields like inputs and textareas, handling React/Vue/Angular controlled components by clearing content and triggering necessary events for proper form interaction.
Instructions
Set the value of an input/textarea, properly handling React/Vue/Angular controlled inputs. This clears existing content and sets new value, triggering all necessary events. Best for form fields that cdp_interact type struggles with.
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": {
"selector": "<selector>",
"value": "<value>"
},
"name": "cdp_set_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector for the input/textarea | |
| value | Yes | Value to set | |
| clear_first | No | Clear existing value first (default: true) |