compact_workspace_export — Compact Slack Export or Jira v3 ADF JSON
Compacts Slack channel/thread JSON (resolving <@U...> mentions, dropping join/leave noise, grouping thread_ts replies, formatting reactions, stripping Block Kit) or Jira v3 Issue/ADF JSON (rendering headings, tables, code blocks, lists, mentions, comments while dropping avatarUrls and null customfield_* keys).
Why buy vs. DIY: Turns bloated 100KB+ Jira REST v3 ADF issues and Slack API payloads into crisp 3KB Markdown without losing comments, tables, code blocks, or reactions.
Pricing: $0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement) · REST: POST https://context-crush.apikeg.com/v1/compact-workspace-export · MCP: https://context-crush.apikeg.com/mcp
Input Parameters
| Field | Type | Required / Default | Description & Constraints |
content |
string |
Required |
Raw Slack channel/thread JSON export or Jira Issue / Atlassian Document Format (ADF v3) JSON payload. (minLength: 2, maxLength: 2000000) |
format |
string |
Default: "auto" |
Workspace JSON format; defaults to automatic Slack vs. Jira ADF detection. (enum: auto | slack_json | jira_json) |
users |
object |
Optional |
Optional Slack user ID to display handle map (e.g. { "U01ABC": "alice" }) used to resolve <@U...> mentions. |
includeReactions |
boolean |
Default: true |
Render concise Slack reaction badges such as '[+3 👍]'. |
REST Example (curl)
curl -X POST "https://context-crush.apikeg.com/v1/compact-workspace-export" \
-H "Content-Type: application/json" \
-d '{
"format": "slack_json",
"users": {
"U01ALICE": "alice",
"U02BOB": "bob"
},
"includeReactions": true,
"content": "[{\"type\":\"message\",\"subtype\":\"channel_join\",\"user\":\"U01ALICE\",\"ts\":\"1731491900.000100\"},{\"type\":\"message\",\"user\":\"U01ALICE\",\"text\":\"Canary deployed — cc <@U02BOB>\",\"ts\":\"1731492000.000200\",\"reactions\":[{\"name\":\"rocket\",\"count\":3}]}]"
}'
MCP tools/call Payload
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "compact_workspace_export",
"arguments": {
"format": "slack_json",
"users": {
"U01ALICE": "alice",
"U02BOB": "bob"
},
"includeReactions": true,
"content": "[{\"type\":\"message\",\"subtype\":\"channel_join\",\"user\":\"U01ALICE\",\"ts\":\"1731491900.000100\"},{\"type\":\"message\",\"user\":\"U01ALICE\",\"text\":\"Canary deployed — cc <@U02BOB>\",\"ts\":\"1731492000.000200\",\"reactions\":[{\"name\":\"rocket\",\"count\":3}]}]"
}
}
}