slack_read_thread/channel return [no preview available] for native table blocks nested in attachments

Open
#126 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start at the implementations of slack_read_thread and slack_read_channel, then compare their attachment handling with the conversations.replies payload shown here. Trace how nested attachments[].blocks[] table, data_table, rich_text, raw_text, and raw_number cells are rendered. Done means the read tools preserve those cell values in readable or structured output instead of returning only the fallback placeholder.

Written by the indexing model from the issue text.

Description

Plugin version

N/A — direct connection to the Slack-hosted MCP server at https://mcp.slack.com/mcp through a custom MCP proxy.

Client

Other: custom MCP client/proxy using @modelcontextprotocol/sdk.

Client version

@modelcontextprotocol/sdk 1.25.x

Operating System

macOS 26.6.2 (client); the behavior is returned by the hosted MCP server.

Description

slack_read_thread and slack_read_channel do not expose cell content from a native Slack table pasted into a message. Slack stores the pasted table as a Block Kit table block nested under attachments[].blocks[], while the attachment fallback is [no preview available].

The Slack Web API raw message still contains every table cell, but the hosted MCP read tools return only the fallback placeholder. This makes an agent unable to answer questions about the pasted table.

This was reproduced again on 2026-08-27, after the server-side legacy attachment fix described in #24 was deployed.

Steps to reproduce
  1. Copy a small table from a spreadsheet and paste it into a Slack message. For example:

    Name Amount
    Item A 1,200
  2. Call slack_read_thread for the message thread. The same behavior occurs with slack_read_channel.

  3. Compare the MCP response with the raw message returned by Slack Web API conversations.replies.

The relevant sanitized raw message shape is:

{
  "attachments": [
    {
      "fallback": "[no preview available]",
      "blocks": [
        {
          "type": "table",
          "rows": [
            [
              {
                "type": "rich_text",
                "elements": [
                  {
                    "type": "rich_text_section",
                    "elements": [{ "type": "text", "text": "Name" }]
                  }
                ]
              },
              {
                "type": "rich_text",
                "elements": [
                  {
                    "type": "rich_text_section",
                    "elements": [{ "type": "text", "text": "Amount" }]
                  }
                ]
              }
            ],
            [
              { "type": "raw_text", "text": "Item A" },
              { "type": "raw_text", "text": "1,200" }
            ]
          ]
        }
      ]
    }
  ]
}
Expected result

The read tools should include the table cell content in a readable representation, for example:

Name | Amount
Item A | 1,200

Alternatively, returning the structured table block would also preserve the information for MCP clients.

The same behavior should apply to the newer data_table block and the documented rich_text, raw_text, and raw_number cell types.

Actual result

The message body returned by the hosted MCP read tool contains only:

[no preview available]

The table rows and cells are absent even though they remain present in the Slack Web API response.

Anything else?
  • #24 fixed attachments[].title and attachments[].text server-side and explicitly requested a focused issue for Block Kit nested inside an attachment. This report covers that remaining pattern.
  • The same Slack payload behavior was independently reported in vercel/chat#803, and their adapter-level table preservation fix was merged in vercel/chat#817.
  • No workspace IDs, message timestamps, or private message content are included in this report.
Dominant language
Python
Stars
173
Forks
46
Avg merge
1d 47m
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from slackapi/slack-skills-plugin

All issues in slackapi/slack-skills-plugin

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.