> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# Image (detailed)

> Reference for the `Image (detailed)` schema.

## Referenced In

* [Click element (detailed)](/reference/schemas/click-element-detailed)
* [Element (detailed)](/reference/schemas/element-detailed)
* [Find element (detailed)](/reference/schemas/find-element-detailed)
* [Type keys (detailed)](/reference/schemas/type-keys-detailed)
* [Element criteria](/reference/schemas/element-criteria)
* [Crop by element (detailed)](/reference/schemas/crop-by-element-detailed)
* [Target by element (detailed)](/reference/schemas/target-by-element-detailed)
* [Element-finding fields](/reference/schemas/element-finding-fields)

## Fields

| Field     | Type   | Description                                                                                                                                                                                                                                                     | Default |
| :-------- | :----- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ |
| path      | string | Optional. Path to a PNG, JPEG, or SVG file. A relative path resolves against the spec file, unless `relativePathBase` is `cwd`. Minimum length: 1                                                                                                               | —       |
| base64    | string | Optional. The image's bytes as base64, with or without a `data:image/png;base64,` prefix. Failure messages call it the `base64` image rather than printing the value. Minimum length: 1                                                                         | —       |
| threshold | number | Optional. The lowest score that counts as a match. A location's score is the lower of its shape score and its color score, and 1 is a perfect match. Defaults to 0.9. Exclusive minimum: 0. Maximum: 1                                                          | —       |
| color     | string | Optional. The icon's color on the page, as a six-digit hex value. Use this for a file drawn in `currentColor`, which renders black, or to find a one-color icon in another color. Works only with a transparent file in one color. Pattern: `^#[0-9a-fA-F]{6}$` | —       |

## Examples

```json
{
  "path": "example",
  "base64": "example",
  "threshold": 42,
  "color": "example"
}
```