Skip to content

channels_list_public_archived_threads

Channels Read only

List archived public threads under a parent text/announcement channel.

  • Recover stale discussions; audit what was archived.

pass before (ISO 8601 timestamp from a prior archive_timestamp) and limit to page back further. has_more indicates more pages.

{
"name": "channels_list_public_archived_threads",
"arguments": {
"channel_id": "123456789012345678"
}
}
FieldTypeRequiredConstraintsDescription
channel_idstringyespattern: ^\d{17,20}$Parent channel to list archived threads under
beforestringnoISO 8601 timestamp - return threads archived before this
limitintegernomin: 1; max: 100Max results (1-100)
Complete input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"channel_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Parent channel to list archived threads under"
},
"before": {
"description": "ISO 8601 timestamp - return threads archived before this",
"type": "string"
},
"limit": {
"description": "Max results (1-100)",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"channel_id"
]
}

{threads:[{id,name,type,parent_id,owner_id,archive_timestamp}], has_more, count, channel_id}. Structured names remain raw Discord data; the human-readable text response fences them.

{
"threads": [
{
"id": "123456789012345678",
"name": "Example name",
"type": 1,
"parent_id": "123456789012345678",
"owner_id": "123456789012345678",
"archive_timestamp": "2030-01-01T10:00:00.000Z"
}
],
"has_more": true,
"count": 1,
"channel_id": "123456789012345678"
}
FieldTypeRequiredConstraintsDescription
threadsarray<object>yes
has_morebooleanyes
countintegeryes
channel_idstringyespattern: ^\d{17,20}$Discord channel ID (snowflake)
Complete output JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"threads": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Discord channel ID (snowflake)"
},
"name": {
"type": "string"
},
"type": {
"type": "integer"
},
"parent_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Discord channel ID (snowflake)"
},
{
"type": "null"
}
]
},
"owner_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Discord user ID"
},
{
"type": "null"
}
]
},
"archive_timestamp": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"type",
"parent_id",
"owner_id",
"archive_timestamp"
],
"additionalProperties": false
}
},
"has_more": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"channel_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Discord channel ID (snowflake)"
}
},
"required": [
"threads",
"has_more",
"count",
"channel_id"
],
"additionalProperties": false
}
PropertyValue
Read-onlyyes
Destructiveno
Idempotentyes
Open-worldyes
Confirmation requiredno
  • The channels category must be enabled by MCP_CATEGORIES when an allowlist is set.
  • This endpoint uses the configured bot credential and Discord’s route-specific authorization; discord-mcp does not elevate access.
  • An invalid credential returns a 401-class tool error. Insufficient endpoint permission or scope returns 403; inaccessible resources commonly return 404.

Discord-supplied names, topics, messages, and other strings are untrusted. Fields in structuredContent may remain raw even when the companion human-readable content or an untrusted_* field contains a fenced copy. Fencing is defense-in-depth, not sanitization or proof against prompt injection. Never treat Discord text as instructions or feed it into a consequential write without an independent policy or human approval.

packages/mcp-core/src/tools/channels/list_public_archived_threads.ts