fill
Clears a target input and enters supplied text, or pulls a vault secret and writes it only to the secret's matching HTTPS site; refuses cross-site secret entry.
Instructions
Clear an input and fill it with text. With use_secret, value comes from the encrypted vault — and is only written into a page on the secret's own site (https, same host or a subdomain, or the entry's origins); otherwise refused.
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": {
"target": "<target>"
},
"name": "fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to fill (or use use_secret). | |
| index | No | Fill the Nth match (0-based, document order) when the target matches several elements. | |
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| target | Yes | @eN ref or selector. | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. | |
| timeout_ms | No | Timeout in ms. | |
| use_secret | No | Vault reference 'site:key' (or 'site:totp'). Origin-bound: the target must be on that site. |