java_get_table
Reads a Java table in pages via the JVM accessibility interface, returning cell text and row/column counts so agents can inspect large tables without loading every row.
Instructions
Read a Java table, a page of rows at a time.
Use this on a handle for a table element -- from java_snapshot or java_find. This is
the tool a platform-level automation cannot replace: it reads the table's own
accessibility interface, so cell text, row and column counts come from the JVM rather
than from pixels or from a bridge that does not carry them.
It never returns the whole table. A large table is 200 rows in pyjab's own test
application and thousands in a real one, so the read is paged by row_start and
bounded by row_count and max_cells, and the reply says what it left out and how to
ask for it.
Cells are not just text. A cell with no text interface is shown as -, and a cell
that could not be read is shown as ? with a count: "this cell has no text" and "I
could not read this cell" are different answers, and reporting the second as the
first would invent an empty table.
Args: session_id: From java_attach_window. handle: A handle for the table element. row_start: First row to read, 0-based. row_count: How many rows to read. max_cells: Hard cap on cells read in one call, whatever the rows ask for.
Returns: The table's row and column counts, then one line per row, then what was left out.
Errors:
is_error for an unknown handle, an element that changed since the snapshot, or
an element that is not a table -- which is reported with what it is instead, so a
wrong handle and a stale handle do not look the same.
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>",
"handle": "<handle>"
},
"name": "java_get_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | ||
| max_cells | No | ||
| row_count | No | ||
| row_start | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |