Docs
query_content
The workspace's content as a table: one row per content item with its board stage, owner (member or agent), campaign labels, channel versions (platform, account, state, times), next scheduled time, comment count and approval summary. Filters: `text` (title, original draft or channel text), `stages` (board columns), `buckets` (in_progress / scheduled / published versions), `platforms`, `channelAccountIds`, `campaigns` / `noCampaign`, owners (`ownerAccountIds`, `ownerAgentClientIds`, `unowned`; combined by OR), `attention`, and `from`/`to` (exclusive) on `dateField` (calendar = a version's scheduled/published time or the planning day). `not` takes the same fields and leaves out what each matches (`not: { channelAccountIds: [...] }` hides content with a version on those accounts; content without an owner is kept by `not: { ownerAccountIds }`); its dates use its own `dateField` (default calendar). Sort by `updated` (default), `scheduled`, `created`, `title` or `board` (column, then card order); page with `nextCursor`. `counts` gives stage and bucket sizes for the same filters. For one item use get_content or get_publish_plan.
The workspace's content as a table: one row per content item with its board stage, owner (member or agent), campaign labels, channel versions (platform, account, state, times), next scheduled time, comment count and approval summary. Filters: text (title, original draft or channel text), stages (board columns), buckets (in_progress / scheduled / published versions), platforms, channelAccountIds, campaigns / noCampaign, owners (ownerAccountIds, ownerAgentClientIds, unowned; combined by OR), attention, and from/to (exclusive) on dateField (calendar = a version's scheduled/published time or the planning day). not takes the same fields and leaves out what each matches (not: { channelAccountIds: [...] } hides content with a version on those accounts; content without an owner is kept by not: { ownerAccountIds }); its dates use its own dateField (default calendar). Sort by updated (default), scheduled, created, title or board (column, then card order); page with nextCursor. counts gives stage and bucket sizes for the same filters. For one item use get_content or get_publish_plan.
Access and cost
- Kind: query
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"text": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"stages": {
"items": {
"enum": [
"idea",
"drafting",
"in_review",
"scheduled",
"published"
],
"type": "string"
},
"maxItems": 5,
"type": "array"
},
"buckets": {
"items": {
"enum": [
"in_progress",
"scheduled",
"published"
],
"type": "string"
},
"maxItems": 3,
"type": "array"
},
"platforms": {
"items": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"maxItems": 20,
"type": "array"
},
"channelAccountIds": {
"items": {
"format": "uuid",
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"campaigns": {
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"type": "array"
},
"noCampaign": {
"type": "boolean"
},
"ownerAccountIds": {
"items": {
"format": "uuid",
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"ownerAgentClientIds": {
"items": {
"format": "uuid",
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"unowned": {
"type": "boolean"
},
"attention": {
"type": "boolean"
},
"dateField": {
"default": "calendar",
"enum": [
"scheduled",
"planned",
"calendar",
"created",
"updated"
],
"type": "string"
},
"from": {
"format": "date-time",
"type": "string"
},
"to": {
"format": "date-time",
"type": "string"
},
"not": {
"properties": {
"text": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"stages": {
"items": {
"enum": [
"idea",
"drafting",
"in_review",
"scheduled",
"published"
],
"type": "string"
},
"maxItems": 5,
"type": "array"
},
"buckets": {
"items": {
"enum": [
"in_progress",
"scheduled",
"published"
],
"type": "string"
},
"maxItems": 3,
"type": "array"
},
"platforms": {
"items": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"maxItems": 20,
"type": "array"
},
"channelAccountIds": {
"items": {
"format": "uuid",
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"campaigns": {
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"type": "array"
},
"noCampaign": {
"type": "boolean"
},
"ownerAccountIds": {
"items": {
"format": "uuid",
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"ownerAgentClientIds": {
"items": {
"format": "uuid",
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"unowned": {
"type": "boolean"
},
"attention": {
"type": "boolean"
},
"dateField": {
"default": "calendar",
"enum": [
"scheduled",
"planned",
"calendar",
"created",
"updated"
],
"type": "string"
},
"from": {
"format": "date-time",
"type": "string"
},
"to": {
"format": "date-time",
"type": "string"
}
},
"type": "object"
},
"includeArchived": {
"default": false,
"type": "boolean"
},
"workspaceId": {
"format": "uuid",
"type": "string"
},
"sort": {
"default": "updated",
"enum": [
"updated",
"scheduled",
"created",
"title",
"board"
],
"type": "string"
},
"direction": {
"enum": [
"asc",
"desc"
],
"type": "string"
},
"cursor": {
"maxLength": 2000,
"minLength": 1,
"type": "string"
},
"limit": {
"default": 40,
"maximum": 40,
"minimum": 1,
"type": "integer"
}
},
"required": [
"workspaceId"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"items": {
"items": {
"additionalProperties": false,
"properties": {
"pieceId": {
"format": "uuid",
"type": "string"
},
"workspaceId": {
"format": "uuid",
"type": "string"
},
"title": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"stage": {
"enum": [
"idea",
"drafting",
"in_review",
"scheduled",
"published"
],
"type": "string"
},
"buckets": {
"items": {
"enum": [
"in_progress",
"scheduled",
"published"
],
"type": "string"
},
"type": "array"
},
"plannedFor": {
"type": [
"string",
"null"
]
},
"archived": {
"type": "boolean"
},
"owner": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"member",
"agent"
],
"type": "string"
},
"accountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"agentClientId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
},
"initials": {
"type": "string"
},
"avatarUrl": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind",
"accountId",
"agentClientId",
"name",
"initials",
"avatarUrl"
],
"type": "object"
},
{
"type": "null"
}
]
},
"campaigns": {
"items": {
"type": "string"
},
"type": "array"
},
"campaign": {
"type": [
"string",
"null"
]
},
"channels": {
"items": {
"additionalProperties": false,
"properties": {
"postId": {
"format": "uuid",
"type": "string"
},
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"emulates": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube"
],
"type": "string"
},
{
"type": "null"
}
]
},
"handle": {
"type": [
"string",
"null"
]
},
"displayName": {
"type": [
"string",
"null"
]
},
"avatarUrl": {
"type": [
"string",
"null"
]
},
"state": {
"enum": [
"draft",
"ready",
"awaiting_confirmation",
"scheduled",
"publishing",
"published",
"failed_retrying",
"needs_attention",
"failed",
"manual",
"removed"
],
"type": "string"
},
"isSkipped": {
"type": "boolean"
},
"bucket": {
"anyOf": [
{
"enum": [
"in_progress",
"scheduled",
"published"
],
"type": "string"
},
{
"type": "null"
}
]
},
"version": {
"minimum": 1,
"type": "integer"
},
"scheduledAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"publishedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"permalink": {
"type": [
"string",
"null"
]
}
},
"required": [
"postId",
"channelAccountId",
"platform",
"emulates",
"handle",
"displayName",
"avatarUrl",
"state",
"isSkipped",
"bucket",
"version",
"scheduledAt",
"publishedAt",
"permalink"
],
"type": "object"
},
"type": "array"
},
"scheduledAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"publishedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"commentCount": {
"additionalProperties": false,
"properties": {
"total": {
"minimum": 0,
"type": "integer"
},
"open": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"total",
"open"
],
"type": "object"
},
"approval": {
"additionalProperties": false,
"properties": {
"state": {
"enum": [
"none",
"in_review",
"changes_requested",
"approved"
],
"type": "string"
},
"required": {
"type": "boolean"
},
"approvedVersions": {
"minimum": 0,
"type": "integer"
},
"totalVersions": {
"minimum": 0,
"type": "integer"
},
"latest": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"reviewer": {
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"member",
"guest",
"agent",
"system"
],
"type": "string"
},
"accountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"agentClientId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"guestId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"accountId",
"agentClientId",
"guestId",
"name"
],
"type": "object"
},
"decision": {
"enum": [
"approved",
"changes_requested"
],
"type": "string"
}
},
"required": [
"reviewer",
"decision"
],
"type": "object"
},
{
"type": "null"
}
]
}
},
"required": [
"state",
"required",
"approvedVersions",
"totalVersions",
"latest"
],
"type": "object"
},
"attention": {
"type": "boolean"
},
"draftedByAgent": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"agentClientId": {
"format": "uuid",
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"agentClientId",
"name"
],
"type": "object"
},
{
"type": "null"
}
]
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
}
},
"required": [
"pieceId",
"workspaceId",
"title",
"excerpt",
"stage",
"buckets",
"plannedFor",
"archived",
"owner",
"campaigns",
"campaign",
"channels",
"scheduledAt",
"publishedAt",
"commentCount",
"approval",
"attention",
"draftedByAgent",
"createdAt",
"updatedAt"
],
"type": "object"
},
"type": "array"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"total": {
"minimum": 0,
"type": "integer"
},
"counts": {
"additionalProperties": false,
"properties": {
"byStage": {
"additionalProperties": {
"minimum": 0,
"type": "integer"
},
"propertyNames": {
"enum": [
"idea",
"drafting",
"in_review",
"scheduled",
"published"
],
"type": "string"
},
"required": [
"idea",
"drafting",
"in_review",
"scheduled",
"published"
],
"type": "object"
},
"byBucket": {
"additionalProperties": {
"minimum": 0,
"type": "integer"
},
"propertyNames": {
"enum": [
"in_progress",
"scheduled",
"published"
],
"type": "string"
},
"required": [
"in_progress",
"scheduled",
"published"
],
"type": "object"
}
},
"required": [
"byStage",
"byBucket"
],
"type": "object"
}
},
"required": [
"items",
"nextCursor",
"total",
"counts"
],
"type": "object"
}Errors
[]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true,
"title": "Query content"
}