Docs
list_sources
Every source attached to the workspace's content (URLs, notes, media, transcripts), newest first, with the content item it belongs to, an excerpt and its fetch state (a URL is only read once `fetchStatus` is fetched). Filter by `pieceId`, `kind` or `text` (title, URL, note or fetched text). Pass `sourceId` to read one in full (`source`: its note, transcript or fetched text). Add one with add_source.
Every source attached to the workspace's content (URLs, notes, media, transcripts), newest first, with the content item it belongs to, an excerpt and its fetch state (a URL is only read once fetchStatus is fetched). Filter by pieceId, kind or text (title, URL, note or fetched text). Pass sourceId to read one in full (source: its note, transcript or fetched text). Add one with add_source.
Access and cost
- Kind: query
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"kind": {
"items": {
"enum": [
"url",
"media",
"note",
"transcript"
],
"type": "string"
},
"minItems": 1,
"type": "array"
},
"text": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"includeArchived": {
"default": false,
"type": "boolean"
},
"limit": {
"default": 50,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"offset": {
"default": 0,
"minimum": 0,
"type": "integer"
},
"sourceId": {
"format": "uuid",
"type": "string"
}
},
"required": [
"workspaceId"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"sources": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"pieceTitle": {
"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"
}
]
},
"excerpt": {
"type": "string"
},
"textLength": {
"minimum": 0,
"type": "integer"
},
"fetchStatus": {
"enum": [
"not_applicable",
"pending",
"fetching",
"fetched",
"failed"
],
"type": "string"
},
"fetchError": {
"type": [
"string",
"null"
]
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
"id",
"pieceId",
"pieceTitle",
"kind",
"title",
"url",
"mediaAssetId",
"excerpt",
"textLength",
"fetchStatus",
"fetchError",
"createdAt",
"updatedAt"
],
"type": "object"
},
"type": "array"
},
"hasMore": {
"type": "boolean"
},
"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": [
"sources",
"hasMore"
],
"type": "object"
}Errors
[]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true,
"title": "List sources"
}