Open-source inference server and production cluster for all the models your agent needs.
Read a full app screenshot into typed fields
Gemma 4 31B on SIE reads a Kanboard task detail screen into a strict JSON schema. One call returns the task's title, priority, dates and other summary fields, plus three ordered subtasks with assignees and time-tracking strings. The recorded answer passes all 26 of 26 original field checks and the complete schema. This is one fictional fixture, not a population accuracy estimate.
View the full original screenshot.
Verify the recording without a model or API key
Use Python 3.12 and uv:
cd examples/screenshot-fields
uv sync --frozen
uv run --frozen python evidence.py fetch
uv run --frozen python evidence.py verify
uv run --frozen python score.py
Fetch downloads a fixed list of public files anonymously. Each file's URL has an
immutable dataset revision; pins.json records its byte length and SHA-256.
Existing files with the wrong digest fail verification instead of being silently
replaced. After the first download, verification and scoring are offline.
Expected result: checks: 26, passed: 26, fully_right: true,
schema_valid: true. Scoring authenticates and imports the original published
scorer, including its text normalization and extra-row penalty. It uses the
original KB01 gold, with no post-hoc field exclusions. Schema validation also
rejects wrong types and undeclared fields. A truncated or invalid answer fails.
The complete published HTTP response is in
evidence/native/KB01-response.json, and its SDK representation is in
evidence/native/KB01-sdk-response.json. Both retain all answer fields and usage.
The public packet removed only the top-level response ID; its manifest records
that removed JSON path and the original raw-response digest. The example does
not replace either file with a clipped or reformatted answer.
Send the same inputs to your SIE endpoint
Configure a SIE endpoint with
google/gemma-4-31B-it:h100-96k-hires-thinking-budget512-no-spec first. The endpoint
must have that model and profile available. Set SIE_API_KEY if it requires
authentication; leave it unset for an unauthenticated local deployment.
uv run --frozen python run.py --endpoint http://localhost:8080
uv run --frozen python score.py --response run-output/response.json
This command deliberately makes an inference request. run.py verifies the
original 1440 × 1000 PNG, the entire instruction including its final newline,
and the complete schema before calling sie_sdk.SIEClient.chat_completions once.
The system message carries the instruction; the user message carries the full
PNG data URI. The strict schema is supplied separately in response_format,
named fixture_kb01. The client sends a 32,768-token cap, temperature 0 and
presence penalty 0, with no application retry loop or fallback model. The SDK
may retry pre-execution admission or model-loading signals; it does not retry
a generation after a post-dispatch timeout.
A fresh complete response is saved separately in run-output/response.json.
An existing output file stops the command before dispatch. A new endpoint,
checkpoint, runtime or profile may return different fields; the recorded 26/26
result does not promise identical output or timing on every deployment.
Request equivalence and provenance
The example pins released sie-sdk==0.10.1. The native recording used the
0.10.0 CUDA13 server image with public source overlay
ab4c9962,
model revision 842da3794eaa0b77d5f08bae87a17459d91ff475, and the exact profile above.
The native packet
contains the full request, response and runtime receipt.
The outgoing request is transport-equivalent to that recording after one
explicit alias: this example sends max_completion_tokens, while the recording
uses max_tokens. The pinned server's
_prepare_chat_body
resolves both to the same cap. An offline test uses the real released SDK and
httpx.MockTransport to compare every other request value, including the full
image, schema and prompt. Mock responses are test fixtures, not new measurements.
The Screenshot Mining task page has a separate 100-screen cost and field-agreement comparison. Its current sources and immutable audit methodology explain that study, including preserved stock scores and sensitivity analyses. This single-call example does not reproduce those aggregate costs or scores. The older 12-screen example remains a separate recording.
Tests
Fetch once using the commands above, then run credential-free checks:
uv run --frozen pytest
uv run --frozen ruff check .
uv run --frozen ruff format --check .
Tests block external downloads and mock SDK transport. They cover altered and missing evidence, fixed download URLs, the full recorded request and response, incorrect field values, missing and extra rows, schema errors and HTTP failures. They make no model calls.
Source notices
The screenshot uses a fictional Kanboard workflow. Kanboard is copyright Frédéric Guillot and contributors, under MIT. Font Awesome is by Dave Gandy and contributors, with its font and supporting-code notices retained in the corpus. Read the pinned attributions, rights record and original notices. Software names identify the source applications; this example makes no upstream endorsement claim or additional trademark grant.