← All tool references

Device Tests · not_available

Color Blindness Test

Color Blindness Test with transparent inputs and reviewable results.

Open public tool

Overview

Category
Device Tests
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/color-blindness-test

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/color-blindness-test/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

plate_set · string · required
Enter plate set. Accepted values: basic, extended.
answer_1 · string · required
Enter plate 1 answer. Accepted values: 12, 8, 6, none.
answer_2 · string · required
Enter plate 2 answer. Accepted values: 8, 3, 5, none.
answer_3 · string · required
Enter plate 3 answer. Accepted values: 6, 5, 9, none.
{
    "type": "object",
    "properties": {
        "plate_set": {
            "type": "string",
            "description": "Enter plate set.",
            "enum": [
                "basic",
                "extended"
            ]
        },
        "answer_1": {
            "type": "string",
            "description": "Enter plate 1 answer.",
            "enum": [
                "12",
                "8",
                "6",
                "none"
            ]
        },
        "answer_2": {
            "type": "string",
            "description": "Enter plate 2 answer.",
            "enum": [
                "8",
                "3",
                "5",
                "none"
            ]
        },
        "answer_3": {
            "type": "string",
            "description": "Enter plate 3 answer.",
            "enum": [
                "6",
                "5",
                "9",
                "none"
            ]
        }
    },
    "required": [
        "plate_set",
        "answer_1",
        "answer_2",
        "answer_3"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

score · number
Informal score produced by the tool.
responses · array
Response review produced by the tool.
screening_notice · string
Screening notice produced by the tool.
{
    "type": "object",
    "properties": {
        "score": {
            "type": "number",
            "description": "Informal score produced by the tool."
        },
        "responses": {
            "type": "array",
            "description": "Response review produced by the tool."
        },
        "screening_notice": {
            "type": "string",
            "description": "Screening notice produced by the tool."
        }
    },
    "additionalProperties": false
}

Color Blindness Test worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/color-blindness-test/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "plate_set": "basic",
    "answer_1": "12",
    "answer_2": "8",
    "answer_3": "6"
}'
{
    "ok": true,
    "data": {
        "slug": "color-blindness-test",
        "result": {
            "values": {
                "score": "3 of 3",
                "responses": [
                    {
                        "plate": 1,
                        "answer": "12",
                        "demonstration_reference": "12",
                        "match": "Match"
                    },
                    {
                        "plate": 2,
                        "answer": "8",
                        "demonstration_reference": "8",
                        "match": "Match"
                    },
                    {
                        "plate": 3,
                        "answer": "6",
                        "demonstration_reference": "6",
                        "match": "Match"
                    }
                ],
                "screening_notice": "This informal, display-dependent demonstration is not a clinical color-vision test."
            },
            "display": {
                "display": "3 of 3"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.