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

# Clarify: Merge Records

> Merge records. Clarify Merge Records reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Merge records.

> [!NOTE]
>
> Tool ID: `clarify_merge_records`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_merge_records',
  {
    "workspace": "example",
    "object": "example",
    "record": "example",
    "data": {
      "type": "example",
      "attributes": {
        "sources": [
          "example"
        ]
      }
    }
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_merge_records --input '{
  "workspace": "example",
  "object": "example",
  "record": "example",
  "data": {
    "type": "example",
    "attributes": {
      "sources": [
        "example"
      ]
    }
  }
}'
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe clarify_merge_records --json` for the complete live contract.

## Input reference

Merges the source records listed in `sources` into the target record. Field values and relationships are combined onto the target, and the source records are deleted. This cannot be undone.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.object` | `string` | Yes | — | The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`). |
| `payload.record` | `string` | Yes | — | The unique ID of the record. |
| `payload.silent` | `boolean` | No | — | When true, suppresses in-app and Slack notifications for this mutation. |
| `payload.data` | `object` | Yes | — | The resource to create. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Merges the source records listed in `sources` into the target record. Field values and relationships are combined onto the target, and the source records are deleted. This cannot be undone.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "object": {
        "type": "string",
        "description": "The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`)."
      },
      "record": {
        "type": "string",
        "description": "The unique ID of the record."
      },
      "silent": {
        "type": "boolean",
        "description": "When true, suppresses in-app and Slack notifications for this mutation."
      },
      "data": {
        "type": "object",
        "description": "The resource to create.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The resource type; matches the `object` path parameter."
          },
          "attributes": {
            "type": "object",
            "description": "Field values keyed by field name; available fields depend on the object’s schema. System fields (prefixed with a single `_`) cannot be set.",
            "properties": {
              "sources": {
                "type": "array",
                "description": "The IDs of the source records to merge into the target record; source records are deleted after the merge.",
                "minItems": 1,
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "sources"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "workspace",
      "object",
      "record",
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `unknown` | Yes | — | Provider response payload. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "description": "Provider response payload."
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.