{
  "answers": {
    "c00": {
      "noul": 0.96,
      "type": "noul"
    },
    "c01": {
      "noul": 0.93,
      "type": "noul"
    },
    "c02": {
      "noul": 0.99,
      "type": "noul"
    },
    "c03": {
      "noul": 0.98,
      "type": "noul"
    },
    "c04": {
      "noul": 0.94,
      "type": "noul"
    },
    "c05": {
      "noul": 0.05,
      "type": "noul"
    },
    "c06": {
      "noul": 0.99,
      "type": "noul"
    },
    "c07": {
      "noul": 0.98,
      "type": "noul"
    },
    "c08": {
      "noul": 0.99,
      "type": "noul"
    },
    "c09": {
      "noul": 0.98,
      "type": "noul"
    },
    "c10": {
      "noul": 0.92,
      "type": "noul"
    },
    "c11": {
      "noul": 0.98,
      "type": "noul"
    },
    "c12": {
      "noul": 0.94,
      "type": "noul"
    },
    "c13": {
      "noul": 0.99,
      "type": "noul"
    },
    "c14": {
      "noul": 0.93,
      "type": "noul"
    },
    "c15": {
      "noul": 0.98,
      "type": "noul"
    },
    "c16": {
      "noul": 0.96,
      "type": "noul"
    },
    "c17": {
      "noul": 0.98,
      "type": "noul"
    },
    "c18": {
      "noul": 0.93,
      "type": "noul"
    },
    "c19": {
      "noul": 0.9,
      "type": "noul"
    },
    "w00": {
      "noul": 0.97,
      "type": "noul"
    },
    "w01": {
      "noul": 0.98,
      "type": "noul"
    },
    "w02": {
      "noul": 0.98,
      "type": "noul"
    },
    "w03": {
      "noul": 0.98,
      "type": "noul"
    },
    "w04": {
      "noul": 0.98,
      "type": "noul"
    },
    "w05": {
      "noul": 0.97,
      "type": "noul"
    },
    "w06": {
      "noul": 0.99,
      "type": "noul"
    },
    "w07": {
      "noul": 0.99,
      "type": "noul"
    },
    "w08": {
      "noul": 0.98,
      "type": "noul"
    }
  },
  "asked_at": "2026-11-23T03:04:33Z",
  "endpoint": "https://api.typesafe.ai/v1/systemone",
  "errors_helpful": [
    {
      "call": 0,
      "noul": 0.96,
      "question": "c00"
    },
    {
      "call": 1,
      "noul": 0.93,
      "question": "c01"
    },
    {
      "call": 2,
      "noul": 0.99,
      "question": "c02"
    },
    {
      "call": 3,
      "noul": 0.98,
      "question": "c03"
    },
    {
      "call": 4,
      "noul": 0.94,
      "question": "c04"
    },
    {
      "call": 5,
      "noul": 0.05,
      "question": "c05"
    },
    {
      "call": 6,
      "noul": 0.99,
      "question": "c06"
    },
    {
      "call": 7,
      "noul": 0.98,
      "question": "c07"
    },
    {
      "call": 8,
      "noul": 0.99,
      "question": "c08"
    },
    {
      "call": 9,
      "noul": 0.98,
      "question": "c09"
    },
    {
      "call": 10,
      "noul": 0.92,
      "question": "c10"
    },
    {
      "call": 11,
      "noul": 0.98,
      "question": "c11"
    },
    {
      "call": 12,
      "noul": 0.94,
      "question": "c12"
    },
    {
      "call": 13,
      "noul": 0.99,
      "question": "c13"
    },
    {
      "call": 14,
      "noul": 0.93,
      "question": "c14"
    },
    {
      "call": 15,
      "noul": 0.98,
      "question": "c15"
    },
    {
      "call": 16,
      "noul": 0.96,
      "question": "c16"
    },
    {
      "call": 17,
      "noul": 0.98,
      "question": "c17"
    },
    {
      "call": 18,
      "noul": 0.93,
      "question": "c18"
    },
    {
      "call": 19,
      "noul": 0.9,
      "question": "c19"
    }
  ],
  "format": "didrun.judgments.v1",
  "input_tokens": 13357,
  "method": "0.15.0",
  "model": "jev-1.14.0",
  "model_asked": "jev-1.14.0",
  "request": {
    "model": "jev-1.14.0",
    "questions": {
      "c00": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for cache: operation: Invalid option: expected one of \\\"get-stats\\\"|\\\"clear\\\"|\\\"get-config\\\"|\\\"set-config\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "cache"
        },
        "type": "noul"
      },
      "c01": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "operation": {}
          },
          "parameter": "operation",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for cache: operation: Invalid option: expected one of \\\"get-stats\\\"|\\\"clear\\\"|\\\"get-config\\\"|\\\"set-config\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "cache"
        },
        "type": "noul"
      },
      "c02": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "category": {}
          },
          "parameter": "category",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for rtfm: category: Invalid input: expected string, received object\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "rtfm"
        },
        "type": "noul"
      },
      "c03": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for adb-device: operation: Invalid option: expected one of \\\"list\\\"|\\\"select\\\"|\\\"wait\\\"|\\\"properties\\\"|\\\"health-check\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "adb-device"
        },
        "type": "noul"
      },
      "c04": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "operation": {}
          },
          "parameter": "operation",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for adb-device: operation: Invalid option: expected one of \\\"list\\\"|\\\"select\\\"|\\\"wait\\\"|\\\"properties\\\"|\\\"health-check\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "adb-device"
        },
        "type": "noul"
      },
      "c05": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"ADB_NOT_FOUND\",\"message\":\"Android SDK not found\",\"suggestion\":\"Install Android Studio or set ANDROID_HOME environment variable\",\"details\":{\"checkedPaths\":[\"/home/lab/Android/Sdk\",\"/opt/android-sdk\",\"/usr/lib/android-sdk\"]}}",
          "tool": "adb-logcat"
        },
        "type": "noul"
      },
      "c06": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "lines": "not a number"
          },
          "parameter": "lines",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for adb-logcat: lines: Invalid input: expected number, received NaN\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "adb-logcat"
        },
        "type": "noul"
      },
      "c07": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for adb-shell: command: Invalid input: expected string, received undefined\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "adb-shell"
        },
        "type": "noul"
      },
      "c08": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "command": {}
          },
          "parameter": "command",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for adb-shell: command: Invalid input: expected string, received object\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "adb-shell"
        },
        "type": "noul"
      },
      "c09": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for gradle-build: operation: Invalid option: expected one of \\\"assembleDebug\\\"|\\\"assembleRelease\\\"|\\\"bundle\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "gradle-build"
        },
        "type": "noul"
      },
      "c10": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "operation": {}
          },
          "parameter": "operation",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for gradle-build: operation: Invalid option: expected one of \\\"assembleDebug\\\"|\\\"assembleRelease\\\"|\\\"bundle\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "gradle-build"
        },
        "type": "noul"
      },
      "c11": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for gradle-test: operation: Invalid option: expected one of \\\"unitTest\\\"|\\\"connectedTest\\\"|\\\"saveBaseline\\\"|\\\"clearBaseline\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "gradle-test"
        },
        "type": "noul"
      },
      "c12": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "operation": {}
          },
          "parameter": "operation",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for gradle-test: operation: Invalid option: expected one of \\\"unitTest\\\"|\\\"connectedTest\\\"|\\\"saveBaseline\\\"|\\\"clearBaseline\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "gradle-test"
        },
        "type": "noul"
      },
      "c13": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for gradle-list: operation: Invalid option: expected one of \\\"variants\\\"|\\\"modules\\\"|\\\"tasks\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "gradle-list"
        },
        "type": "noul"
      },
      "c14": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "operation": {}
          },
          "parameter": "operation",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for gradle-list: operation: Invalid option: expected one of \\\"variants\\\"|\\\"modules\\\"|\\\"tasks\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "gradle-list"
        },
        "type": "noul"
      },
      "c15": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for ui-query: operation: Invalid option: expected one of \\\"dump\\\"|\\\"find\\\"|\\\"accessibility-check\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "ui-query"
        },
        "type": "noul"
      },
      "c16": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "operation": {}
          },
          "parameter": "operation",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for ui-query: operation: Invalid option: expected one of \\\"dump\\\"|\\\"find\\\"|\\\"accessibility-check\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "ui-query"
        },
        "type": "noul"
      },
      "c17": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for ui-action: operation: Invalid option: expected one of \\\"tap\\\"|\\\"input\\\"|\\\"scroll\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "ui-action"
        },
        "type": "noul"
      },
      "c18": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "operation": {}
          },
          "parameter": "operation",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "{\"error\":\"INPUT_VALIDATION_FAILED\",\"message\":\"Invalid input for ui-action: operation: Invalid option: expected one of \\\"tap\\\"|\\\"input\\\"|\\\"scroll\\\"\",\"suggestion\":\"Check the tool input schema and provide valid arguments\"}",
          "tool": "ui-action"
        },
        "type": "noul"
      },
      "c19": {
        "criteria": {
          "false": "The reply does not say the tool is missing: for example a generic failure, a crash, or a normal answer.",
          "true": "The reply says the tool is unknown, not found, or does not exist."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` tell the caller that there is no tool named `tool`?",
          "reply": "Unknown tool: didrun_unknown_tool",
          "tool": "didrun_unknown_tool"
        },
        "type": "noul"
      },
      "w00": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## `ui-query` documentation\n\n`ui-query` queries the Android UI accessibility tree and finds elements.\n\n### Operations\n\n- **`dump`** — Get the full accessibility tree.\n- **`find`** — Find elements by selector, with OCR and visual fallbacks.\n- **`accessibility-check`** — Run a quick accessibility assessment.\n\n### Selectors for `find`\n\n| Selector | Match |\n|---|---|\n| `resourceId` | Partial resource ID |\n| `text` | Exact text |\n| `textContains` | Partial text |\n| `className` | Class name |\n| `nearestTo` | Elements nearest to the specified text, by spatial proximity |\n\n### Fallback chain\n\n1. Accessibility tree\n2. Resource ID pattern match\n3. OCR via Tesseract\n4. Visual candidates: cropped, unlabeled clickable elements\n5. Grid fallback, which produces a large payload\n\nOptional parameters include `debug`, which adds the source and confidence scores, and `maxTier`, which limits the fallback chain to tiers 1–5. Use `maxTier: 3` to avoid visual and grid image payloads.\n\n### Examples\n\nFind an element by exact text:\n\n```json\n{\n  \"operation\": \"find\",\n  \"selector\": { \"text\": \"Login\" },\n  \"maxTier\": 3\n}\n```\n\nFind elements containing “edit,” sorted by distance to “John”:\n\n```json\n{\n  \"operation\": \"find\",\n  \"selector\": { \"textContains\": \"edit\", \"nearestTo\": \"John\" }\n}\n```",
          "done_when": "The transcript shows the UI or ui-query documentation returned by the server.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "tool": "ui-query"
              },
              "reply": "{\"content\":\"## ui-query\\n\\nQuery the UI accessibility tree and find elements.\\n\\n**Operations:**\\n- `dump` - Get full accessibility tree\\n- `find` - Find elements by selector (with OCR/visual fallback)\\n- `accessibility-check` - Quick accessibility assessment\\n\\n**Selectors (for find):**\\n- `resourceId`: Match resource ID (partial)\\n- `text`: Match exact text\\n- `textContains`: Match partial text\\n- `className`: Match class name\\n- `nearestTo`: Find elements nearest to this text (spatial proximity)\\n\\n**Fallback chain:**\\n1. Accessibility tree (fast, reliable)\\n2. ResourceId pattern match (icon/button patterns)\\n3. OCR via Tesseract\\n4. Visual candidates (cropped unlabeled clickables)\\n5. Grid fallback (large payload; use only when needed)\\n\\n**Optional parameters:**\\n- `debug`: Include source (accessibility/ocr) and confidence scores\\n- `maxTier`: Maximum fallback tier to attempt (1-5). Use `3` to avoid visual/grid image payloads.\\n\\n**Recommended caller pattern:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"text\\\": \\\"Login\\\" }, \\\"maxTier\\\": 3 }\\n```\\nThis keeps routine searches text-first and avoids tier 4/5 visual payloads unless you explicitly opt in.\\n\\n**Example - Find elements:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"text\\\": \\\"Login\\\" } }\\n// Returns: { elements: [{ index: 0, centerX: 540, centerY: 1200, ... }] }\\n```\\n\\n**Example - Spatial proximity:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"textContains\\\": \\\"edit\\\", \\\"nearestTo\\\": \\\"John\\\" } }\\n// Returns elements containing \\\"edit\\\", sorted by distance to \\\"John\\\"\\n```\"}",
              "tool": "rtfm"
            }
          ],
          "task": "Show me the server's documentation for querying Android app UIs, including the available operations and selector options."
        },
        "type": "noul"
      },
      "w01": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## Server documentation: querying Android app UIs\n\nThe server’s `ui-query` tool queries the UI accessibility tree and finds elements.\n\n### Operations\n\n| Operation | Description |\n|---|---|\n| `dump` | Get the full accessibility tree. |\n| `find` | Find elements by selector, with OCR and visual fallbacks. |\n| `accessibility-check` | Run a quick accessibility assessment. |\n\n### Selectors for `find`\n\n| Selector | Description |\n|---|---|\n| `resourceId` | Match a resource ID partially. |\n| `text` | Match exact text. |\n| `textContains` | Match partial text. |\n| `className` | Match a class name. |\n| `nearestTo` | Find elements nearest to the specified text, by spatial proximity. |\n\n### Fallback chain\n\n1. Accessibility tree\n2. Resource ID pattern matching\n3. OCR via Tesseract\n4. Visual candidates: cropped, unlabeled clickable elements\n5. Grid fallback\n\nThe optional `maxTier` parameter limits the fallback tier from 1 to 5. The documentation recommends `maxTier: 3` for routine searches to avoid visual and grid image payloads. Set `debug: true` to include the source and confidence scores.\n\n**Example: find exact text**\n\n```json\n{\n  \"operation\": \"find\",\n  \"selector\": { \"text\": \"Login\" },\n  \"maxTier\": 3\n}\n```\n\n**Example: spatial proximity**\n\n```json\n{\n  \"operation\": \"find\",\n  \"selector\": {\n    \"textContains\": \"edit\",\n    \"nearestTo\": \"John\"\n  }\n}\n```\n\nThe second query returns elements containing “edit,” sorted by distance to “John.”",
          "done_when": "The transcript shows the UI or ui-query documentation returned by the server.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "category": "ui"
              },
              "reply": "{\"content\":\"# UI Automation Tools\\n\\n## ui-query\\n\\nQuery the UI accessibility tree and find elements.\\n\\n**Operations:**\\n- `dump` - Get full accessibility tree\\n- `find` - Find elements by selector (with OCR/visual fallback)\\n- `accessibility-check` - Quick accessibility assessment\\n\\n**Selectors (for find):**\\n- `resourceId`: Match resource ID (partial)\\n- `text`: Match exact text\\n- `textContains`: Match partial text\\n- `className`: Match class name\\n- `nearestTo`: Find elements nearest to this text (spatial proximity)\\n\\n**Fallback chain:**\\n1. Accessibility tree (fast, reliable)\\n2. ResourceId pattern match (icon/button patterns)\\n3. OCR via Tesseract\\n4. Visual candidates (cropped unlabeled clickables)\\n5. Grid fallback (large payload; use only when needed)\\n\\n**Optional parameters:**\\n- `debug`: Include source (accessibility/ocr) and confidence scores\\n- `maxTier`: Maximum fallback tier to attempt (1-5). Use `3` to avoid visual/grid image payloads.\\n\\n**Recommended caller pattern:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"text\\\": \\\"Login\\\" }, \\\"maxTier\\\": 3 }\\n```\\nThis keeps routine searches text-first and avoids tier 4/5 visual payloads unless you explicitly opt in.\\n\\n**Example - Find elements:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"text\\\": \\\"Login\\\" } }\\n// Returns: { elements: [{ index: 0, centerX: 540, centerY: 1200, ... }] }\\n```\\n\\n**Example - Spatial proximity:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"textContains\\\": \\\"edit\\\", \\\"nearestTo\\\": \\\"John\\\" } }\\n// Returns elements containing \\\"edit\\\", sorted by distance to \\\"John\\\"\\n```\\n\\n## ui-action\\n\\nTap, input text, and scroll on the device UI.\\n\\n**Operations:**\\n- `tap` - Tap at coordinates, element index, or grid cell\\n- `input` - Enter text\\n- `scroll` - Scroll the screen\\n\\n**Tap options:**\\n- `x`, `y`: Direct coordinates\\n- `elementIndex`: Index from previous find result\\n- `gridCell`: Grid cell 1-24 (6x4 grid overlay)\\n- `gridPosition`: Position within cell (1=TL, 2=TR, 3=Center, 4=BL, 5=BR)\\n\\n**Example - Cross-tool find and tap:**\\n```json\\n// Step 1: Use ui-query to find the element\\nui-query: { \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"text\\\": \\\"Login\\\" } }\\n// Returns: { elements: [{ index: 0, centerX: 540, centerY: 1200, ... }] }\\n\\n// Step 2: Use ui-action to tap it\\nui-action: { \\\"operation\\\": \\\"tap\\\", \\\"elementIndex\\\": 0 }\\n```\\n\\n**Example - Grid-based tap (for icons):**\\n```json\\n{ \\\"operation\\\": \\\"tap\\\", \\\"gridCell\\\": 12, \\\"gridPosition\\\": 3 }\\n// Taps center of cell 12 in the 24-cell grid overlay\\n```\\n\\n## ui-capture\\n\\nCapture screenshots and visual snapshots of the device screen.\\n\\n**Operations:**\\n- `screenshot` - Capture screen to file\\n- `visual-snapshot` - Get screenshot + screen/app metadata\\n\\n**Optional parameters:**\\n- `inline`: Return base64 screenshot in response\\n- `localPath`: Custom path for screenshot output\\n\\n### Scaling Modes\\n\\n| Mode | Parameter | Behavior |\\n|------|-----------|----------|\\n| Default | (none) | Scale to 800px max |\\n| Custom | `maxDimension: 1500` | Scale to specified size |\\n| Raw | `raw: true` | No scaling (may exceed API limits) |\\n\\n### Response Format\\n\\nScreenshot responses now include scaling metadata:\\n\\n```json\\n{\\n  \\\"mode\\\": \\\"file\\\",\\n  \\\"path\\\": \\\".replicant/screenshots/screenshot-1234.png\\\",\\n  \\\"device\\\": { \\\"width\\\": 1080, \\\"height\\\": 2400 },\\n  \\\"image\\\": { \\\"width\\\": 360, \\\"height\\\": 800 },\\n  \\\"scaleFactor\\\": 3\\n}\\n```\\n\\n## Screenshot Scaling\\n\\nScreenshots are automatically scaled to fit within 800px (longest side) by default.\\nThis prevents API context limits and reduces token usage.\\n\\n**All coordinates are in image space.** Tap coordinates are automatically converted\\nto device coordinates. You don't need to do any math.\\n\\n### When to Use Raw Mode\\n\\n- Non-Anthropic models with different limits\\n- External context management (compaction, agent respawning)\\n- Debugging coordinate issues\\n\\n## Context Management\\n\\n**Prefer accessibility tree (`dump`, `find`) because:**\\n- No context cost (text, not images)\\n- Coordinates are precise\\n- Faster execution\\n\\n**Use screenshots when:**\\n- Accessibility tree is empty/unhelpful\\n- You need to see visual layout\\n- Icons have no text labels\\n\\n**Ask yourself:** Do I need to SEE the screen, or just INTERACT with it?\\n\"}",
              "tool": "rtfm"
            }
          ],
          "task": "Show me the server's documentation for querying Android app UIs, including the available operations and selector options."
        },
        "type": "noul"
      },
      "w02": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## Server documentation: `ui-query`\n\n`ui-query` queries the Android UI accessibility tree and finds elements.\n\n### Operations\n\n- **`dump`** — Get the full accessibility tree.\n- **`find`** — Find elements by selector, with OCR and visual fallbacks.\n- **`accessibility-check`** — Run a quick accessibility assessment.\n\n### Selectors for `find`\n\n| Selector | Match |\n|---|---|\n| `resourceId` | Partial resource ID |\n| `text` | Exact text |\n| `textContains` | Partial text |\n| `className` | Class name |\n| `nearestTo` | Elements nearest to the specified text, by spatial proximity |\n\n### Fallback chain\n\n1. Accessibility tree\n2. Resource ID pattern matching for icons and buttons\n3. OCR via Tesseract\n4. Visual candidates: cropped, unlabeled clickable elements\n5. Grid fallback, which produces a large payload\n\nOptional parameters include `debug`, which adds source and confidence information, and `maxTier`, which limits fallback to tiers 1–5. The server recommends `maxTier: 3` for routine searches to avoid visual and grid image payloads.\n\n### Examples\n\nFind an element by exact text:\n\n```json\n{\n  \"operation\": \"find\",\n  \"selector\": { \"text\": \"Login\" },\n  \"maxTier\": 3\n}\n```\n\nFind elements containing “edit,” sorted by distance to “John”:\n\n```json\n{\n  \"operation\": \"find\",\n  \"selector\": { \"textContains\": \"edit\", \"nearestTo\": \"John\" }\n}\n```",
          "done_when": "The transcript shows the UI or ui-query documentation returned by the server.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "tool": "ui-query"
              },
              "reply": "{\"content\":\"## ui-query\\n\\nQuery the UI accessibility tree and find elements.\\n\\n**Operations:**\\n- `dump` - Get full accessibility tree\\n- `find` - Find elements by selector (with OCR/visual fallback)\\n- `accessibility-check` - Quick accessibility assessment\\n\\n**Selectors (for find):**\\n- `resourceId`: Match resource ID (partial)\\n- `text`: Match exact text\\n- `textContains`: Match partial text\\n- `className`: Match class name\\n- `nearestTo`: Find elements nearest to this text (spatial proximity)\\n\\n**Fallback chain:**\\n1. Accessibility tree (fast, reliable)\\n2. ResourceId pattern match (icon/button patterns)\\n3. OCR via Tesseract\\n4. Visual candidates (cropped unlabeled clickables)\\n5. Grid fallback (large payload; use only when needed)\\n\\n**Optional parameters:**\\n- `debug`: Include source (accessibility/ocr) and confidence scores\\n- `maxTier`: Maximum fallback tier to attempt (1-5). Use `3` to avoid visual/grid image payloads.\\n\\n**Recommended caller pattern:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"text\\\": \\\"Login\\\" }, \\\"maxTier\\\": 3 }\\n```\\nThis keeps routine searches text-first and avoids tier 4/5 visual payloads unless you explicitly opt in.\\n\\n**Example - Find elements:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"text\\\": \\\"Login\\\" } }\\n// Returns: { elements: [{ index: 0, centerX: 540, centerY: 1200, ... }] }\\n```\\n\\n**Example - Spatial proximity:**\\n```json\\n{ \\\"operation\\\": \\\"find\\\", \\\"selector\\\": { \\\"textContains\\\": \\\"edit\\\", \\\"nearestTo\\\": \\\"John\\\" } }\\n// Returns elements containing \\\"edit\\\", sorted by distance to \\\"John\\\"\\n```\"}",
              "tool": "rtfm"
            }
          ],
          "task": "Show me the server's documentation for querying Android app UIs, including the available operations and selector options."
        },
        "type": "noul"
      },
      "w03": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "I inspected the server cache. Its current configuration and usage are:\n\n- **Maximum entries:** 100\n- **Maximum entry size:** 1,048,576 bytes (1 MiB)\n- **Default TTL:** 300,000 ms (5 minutes)\n- **Current entries:** 0\n- **Current size:** 0 bytes\n- **Type breakdown:** Empty",
          "done_when": "The transcript shows tool replies containing the cache configuration and cache statistics.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "operation": "get-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            },
            {
              "arguments": {
                "operation": "get-stats"
              },
              "reply": "{\"stats\":{\"entryCount\":0,\"totalSizeBytes\":0,\"typeBreakdown\":{},\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}}",
              "tool": "cache"
            }
          ],
          "task": "Inspect the server cache and report its current configuration and usage statistics."
        },
        "type": "noul"
      },
      "w04": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The server cache is currently **empty**.\n\n**Configuration**\n- Maximum entries: 100\n- Maximum entry size: 1,048,576 bytes (1 MiB)\n- Default TTL: 300,000 ms (5 minutes)\n\n**Current usage**\n- Entries: 0\n- Total size: 0 bytes\n- Type breakdown: none",
          "done_when": "The transcript shows tool replies containing the cache configuration and cache statistics.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "operation": "get-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            },
            {
              "arguments": {
                "operation": "get-stats"
              },
              "reply": "{\"stats\":{\"entryCount\":0,\"totalSizeBytes\":0,\"typeBreakdown\":{},\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}}",
              "tool": "cache"
            }
          ],
          "task": "Inspect the server cache and report its current configuration and usage statistics."
        },
        "type": "noul"
      },
      "w05": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "### Cache configuration\n- **Maximum entries:** 100\n- **Maximum entry size:** 1,048,576 bytes (1 MiB)\n- **Default TTL:** 300,000 ms (5 minutes)\n\n### Current usage\n- **Entries:** 0\n- **Total size:** 0 bytes\n- **Type breakdown:** Empty",
          "done_when": "The transcript shows tool replies containing the cache configuration and cache statistics.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "operation": "get-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            },
            {
              "arguments": {
                "operation": "get-stats"
              },
              "reply": "{\"stats\":{\"entryCount\":0,\"totalSizeBytes\":0,\"typeBreakdown\":{},\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}}",
              "tool": "cache"
            }
          ],
          "task": "Inspect the server cache and report its current configuration and usage statistics."
        },
        "type": "noul"
      },
      "w06": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Set the cache maximum to **100 entries**. Reading the configuration back confirmed `maxEntries: 100`.",
          "done_when": "The transcript shows the cache configuration after the update with maxEntries set to 100.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "config": {
                  "maxEntries": 100
                },
                "operation": "set-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            },
            {
              "arguments": {
                "operation": "get-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            }
          ],
          "task": "Set the cache maximum number of entries to 100, then read the configuration back to verify the change."
        },
        "type": "noul"
      },
      "w07": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Set the cache maximum to **100 entries** and read the configuration back to verify it. The returned `maxEntries` value was `100`.",
          "done_when": "The transcript shows the cache configuration after the update with maxEntries set to 100.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "config": {
                  "maxEntries": 100
                },
                "operation": "set-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            },
            {
              "arguments": {
                "operation": "get-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            }
          ],
          "task": "Set the cache maximum number of entries to 100, then read the configuration back to verify the change."
        },
        "type": "noul"
      },
      "w08": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Set the cache maximum to **100 entries** and read the configuration back. The returned configuration confirms `maxEntries: 100`.",
          "done_when": "The transcript shows the cache configuration after the update with maxEntries set to 100.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "config": {
                  "maxEntries": 100
                },
                "operation": "set-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            },
            {
              "arguments": {
                "operation": "get-config"
              },
              "reply": "{\"config\":{\"maxEntries\":100,\"maxEntrySizeBytes\":1048576,\"defaultTtlMs\":300000}}",
              "tool": "cache"
            }
          ],
          "task": "Set the cache maximum number of entries to 100, then read the configuration back to verify the change."
        },
        "type": "noul"
      }
    },
    "state": {
      "about": "Replies of an MCP server to tool calls that were sent with bad input on purpose, to see whether its error messages help a caller fix the call."
    }
  },
  "run_id": "01M8334C8H683GDQ9JM8BF3ZF6",
  "works_done": [
    {
      "attempt": 0,
      "noul": 0.97,
      "question": "w00"
    },
    {
      "attempt": 1,
      "noul": 0.98,
      "question": "w01"
    },
    {
      "attempt": 2,
      "noul": 0.98,
      "question": "w02"
    },
    {
      "attempt": 3,
      "noul": 0.98,
      "question": "w03"
    },
    {
      "attempt": 4,
      "noul": 0.98,
      "question": "w04"
    },
    {
      "attempt": 5,
      "noul": 0.97,
      "question": "w05"
    },
    {
      "attempt": 6,
      "noul": 0.99,
      "question": "w06"
    },
    {
      "attempt": 7,
      "noul": 0.99,
      "question": "w07"
    },
    {
      "attempt": 8,
      "noul": 0.98,
      "question": "w08"
    }
  ]
}
