> ## 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: Create Comment

> Create a comment. Clarify Create Comment reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Create a comment.

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

## 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_create_comment',
  {
    "workspace": "example",
    "message": [
      {}
    ],
    "owner_id": "owner_123",
    "entity": "example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_create_comment --input '{
  "workspace": "example",
  "message": [
    {}
  ],
  "owner_id": "owner_123",
  "entity": "example"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "message": [
      {}
    ],
    "owner_id": "owner_123",
    "entity": "example",
    "_created_at": "2026-01-15T12:00:00Z",
    "_created_by": "example",
    "_updated_at": "2026-01-15T12:00:00Z",
    "_updated_by": "2026-01-15T12:00:00Z"
  }
}
```

Use `deepline describe clarify_create_comment --json` for the latest machine-readable contract.

## Input reference

Creates a comment on a record. The comment body is rich text, and `owner_id` plus `entity` identify the record it is attached to. Returns the created comment row.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.silent` | `boolean` | No | — | When true, suppresses in-app and Slack notifications for this mutation. |
| `payload._id` | `string` | No | — | The unique ID of the comment. Generated by the server when omitted on create. Format: `uuid`. |
| `payload.message` | `array` | Yes | — | The comment body, as a non-empty array of rich-text (BlockNote) nodes. |
| `payload.owner_id` | `string` | Yes | — | The unique ID of the record the comment is attached to. |
| `payload.entity` | `string` | Yes | — | The object type of the record the comment is attached to. Must be an object that supports comments (e.g. `person`, `deal`, `task`, or a custom object such as `c_dog`). Lead-finder records (`tam_person`, `tam_company`) cannot be commented on. |
| `payload._event_id` | `string` | No | — | An optional client-supplied ID for the comment creation event. generated by the server when omitted. Format: `uuid`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Creates a comment on a record. The comment body is rich text, and `owner_id` plus `entity` identify the record it is attached to. Returns the created comment row.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "silent": {
        "type": "boolean",
        "description": "When true, suppresses in-app and Slack notifications for this mutation."
      },
      "_id": {
        "type": "string",
        "description": "The unique ID of the comment. Generated by the server when omitted on create.",
        "format": "uuid"
      },
      "message": {
        "type": "array",
        "description": "The comment body, as a non-empty array of rich-text (BlockNote) nodes.",
        "items": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "owner_id": {
        "type": "string",
        "description": "The unique ID of the record the comment is attached to."
      },
      "entity": {
        "type": "string",
        "description": "The object type of the record the comment is attached to. Must be an object that supports comments (e.g. `person`, `deal`, `task`, or a custom object such as `c_dog`). Lead-finder records (`tam_person`, `tam_company`) cannot be commented on."
      },
      "_event_id": {
        "type": "string",
        "description": "An optional client-supplied ID for the comment creation event; generated by the server when omitted.",
        "format": "uuid"
      }
    },
    "required": [
      "workspace",
      "message",
      "owner_id",
      "entity"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data._id` | `string` | No | — | The unique ID of the comment. Generated by the server when omitted on create. Format: `uuid`. |
| `result.data.message` | `array` | Yes | — | The comment body, as a non-empty array of rich-text (BlockNote) nodes. |
| `result.data.owner_id` | `string` | Yes | — | The unique ID of the record the comment is attached to. |
| `result.data.entity` | `string` | Yes | — | The object type of the record the comment is attached to. Must be an object that supports comments (e.g. `person`, `deal`, `task`, or a custom object such as `c_dog`). Lead-finder records (`tam_person`, `tam_company`) cannot be commented on. |
| `result.data._created_at` | `string` | Yes | — | The time the comment was created. Format: `date-time`. |
| `result.data._created_by` | `string` | Yes | — | The ID of the user or agent that created the comment. |
| `result.data._updated_at` | `string \| null` | Yes | — | The time the comment was last edited, or `null` if it has never been edited. Format: `date-time`. |
| `result.data._updated_by` | `string \| null` | Yes | — | The ID of the user or agent that last edited the comment, or `null` if it has never been edited. |
| `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": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "_id": {
            "type": "string",
            "description": "The unique ID of the comment. Generated by the server when omitted on create.",
            "format": "uuid"
          },
          "message": {
            "type": "array",
            "description": "The comment body, as a non-empty array of rich-text (BlockNote) nodes.",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "owner_id": {
            "type": "string",
            "description": "The unique ID of the record the comment is attached to."
          },
          "entity": {
            "type": "string",
            "description": "The object type of the record the comment is attached to. Must be an object that supports comments (e.g. `person`, `deal`, `task`, or a custom object such as `c_dog`). Lead-finder records (`tam_person`, `tam_company`) cannot be commented on."
          },
          "_created_at": {
            "type": "string",
            "description": "The time the comment was created.",
            "format": "date-time"
          },
          "_created_by": {
            "type": "string",
            "description": "The ID of the user or agent that created the comment."
          },
          "_updated_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "The time the comment was last edited, or `null` if it has never been edited.",
            "format": "date-time"
          },
          "_updated_by": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the user or agent that last edited the comment, or `null` if it has never been edited."
          }
        },
        "required": [
          "message",
          "owner_id",
          "entity",
          "_created_at",
          "_created_by",
          "_updated_at",
          "_updated_by"
        ],
        "additionalProperties": false
      },
      "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.