# add_source

Source: https://heyeveryone.ai/docs/mcp/add_source

> Attach what a content item is made from; drafts and posts are written from sources. Kinds: `url` (a public http(s) page: heyeveryone fetches it in the background and stores its readable text, title and description; check `fetchStatus` with get_content: pending -> fetching -> fetched or failed with a reason), `note` (free text), `media` (a library media asset id, e.g. a finished video), `transcript` (text of a talk or video you already have).

Attach what a content item is made from; drafts and posts are written from sources. Kinds: `url` (a public http(s) page: heyeveryone fetches it in the background and stores its readable text, title and description; check `fetchStatus` with get_content: pending -> fetching -> fetched or failed with a reason), `note` (free text), `media` (a library media asset id, e.g. a finished video), `transcript` (text of a talk or video you already have).

## Access and cost

- Kind: mutation
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false

## Input schema

```json
{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "pieceId": {
      "format": "uuid",
      "type": "string"
    },
    "kind": {
      "enum": [
        "url",
        "media",
        "note",
        "transcript"
      ],
      "type": "string"
    },
    "title": {
      "maxLength": 300,
      "minLength": 1,
      "type": "string"
    },
    "url": {
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
    },
    "note": {
      "minLength": 1,
      "type": "string"
    },
    "mediaAssetId": {
      "format": "uuid",
      "type": "string"
    },
    "transcript": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "pieceId",
    "kind"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "source": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "pieceId": {
          "format": "uuid",
          "type": "string"
        },
        "kind": {
          "enum": [
            "url",
            "media",
            "note",
            "transcript"
          ],
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "mediaAssetId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "fetchedText": {
          "type": [
            "string",
            "null"
          ]
        },
        "fetchStatus": {
          "enum": [
            "not_applicable",
            "pending",
            "fetching",
            "fetched",
            "failed"
          ],
          "type": "string"
        },
        "fetchError": {
          "type": [
            "string",
            "null"
          ]
        },
        "fetchedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAgentClientId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "workspaceId",
        "pieceId",
        "kind",
        "title",
        "url",
        "mediaAssetId",
        "note",
        "fetchedText",
        "fetchStatus",
        "fetchError",
        "fetchedAt",
        "createdByAccountId",
        "createdByAgentClientId",
        "createdAt",
        "updatedAt",
        "description"
      ],
      "type": "object"
    }
  },
  "required": [
    "source"
  ],
  "type": "object"
}
```

## Errors

```json
[
  "invalid_url"
]
```

## Annotations

```json
{
  "destructiveHint": false,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Add a source to content"
}
```
