> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentcard.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# detect_checkout

> Check whether the current browser tab is a checkout page

Checks whether the current browser tab is a checkout page and how confident the detection is. Use it before `pay_checkout` to confirm the page is ready to pay; it needs Chrome with the Agentcard Pay extension installed.

## Parameters

| Parameter | Type   | Required | Description                                     |
| --------- | ------ | -------- | ----------------------------------------------- |
| `tab_id`  | number | No       | Chrome tab ID. If omitted, uses the active tab. |

## Returns

Whether the tab looks like a checkout page (`isCheckout`), a confidence score from 0 to 1, and the amount detected on the page in cents when one is found. It also lists the scoring signals behind the decision, each with its name, weight, and whether it matched.

## Example

```json theme={null}
{ "name": "detect_checkout", "arguments": {} }
```
