# app_sweep_complete

App-only: verify browser signatures and submit the exact previously prepared sweep once.

## Result

An MCP result containing the operation outcome as text, with structured content where supplied. Check isError before using it; an output schema is shown when registered.

## Permissions

This operation can change wallet, account or service state. A connected wallet applies its own permissions. Guarded broadcasts also require broadcasting to be enabled; service authorization is separate from wallet approval.

## Definition 1 (full)

Registered in: Local Vault · all roles; Local Vault · payment role only; External BRC-100 wallet; Local Vault + sponsor.

App-only: verify browser signatures and submit the exact previously prepared sweep once.

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| reference | string | Yes |  | pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\|00000000-0000-0000-0000-000000000000\|ffffffff-ffff-ffff-ffff-ffffffffffff)$"; format: "uuid" |
| spends | object | Yes |  |  |

Nested requirements apply when their parent is supplied.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "reference": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "spends": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "pattern": "^(0|[1-9][0-9]*)$"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "unlockingScript": {
            "type": "string",
            "pattern": "^(?:[0-9a-f]{2}){1,108}$"
          }
        },
        "required": [
          "unlockingScript"
        ]
      }
    }
  },
  "required": [
    "reference",
    "spends"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
```

[All tools](https://bsvmcp.com/docs/tools)