java_fill_form
Fills multiple fields in a single Java form call and reports the outcome for every field, including failures, so you can verify partial completion without one round trip per field.
Instructions
Fill several fields in one call: a list of {"handle": ..., "value": ...}.
A form is usually several fields, and setting them one at a time costs a round trip each. This is the same verification and the same typing, applied in order, with one reply that says what happened to every field.
It does not stop at the first failure. A form that is half filled with no report is worse than one that is half filled with one: every field is attempted, and each line says whether it worked and why not.
Args:
session_id: From java_attach_window.
fields: [{"handle": "e:1a2b", "value": "admin"}, ...], applied in order.
simulate: Type real keystrokes instead of using the accessibility action.
Returns: One line per field — set, or the reason it was not — and a count.
Errors:
is_error only for an unknown session, an empty list, or a malformed entry.
A field that fails is reported in the reply, because that is a result rather than
a failed call.
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": {
"session_id": "<session_id>",
"fields": "<fields>"
},
"name": "java_fill_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| simulate | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |