form_input
Set a form element value by its element reference (ref). Ideal for filling a single input, textarea, select, or checkbox.
Instructions
Set one form element value by ref. Pass intent="..." (≤120 chars) to label this action in audit logs.
When to use: Filling a single known input, textarea, select, or checkbox by ref. When NOT to use: Use fill_form({fields:{...}}) for multiple fields or optional submit.
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": {
"ref": "<ref>",
"value": "<value>",
"tabId": "<tabId>"
},
"name": "form_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref or backendNodeId | |
| tabId | Yes | Tab ID to set form value in | |
| value | Yes | Value to set. Checkboxes: "true"/"false" | |
| intent | No | Human-readable label for this action in audit logs (≤120 chars) | |
| capture_artifact | No | When true, stage a replay artifact step for oc_skill_record. Default false is a strict no-op. | |
| returnAfterState | No | Optional chaining hint. When "ax" or "dom", the response includes a page snapshot of that mode captured after the post-action wait, removing the need for a follow-up read_page call. Default: "none". |