# MCP tools

> Every tool and resource of Slaiky’s MCP server, for AI clients and for bots.

Source: https://slaiky.xyz/docs/reference/mcp

Slaiky’s MCP server is `https://app.slaiky.xyz/api/mcp` (Streamable HTTP). People connect with OAuth from their AI client ([guide](/docs/mcp)); an app connects with its bot token (`Authorization: Bearer slk-bot-…`) and sees the tools its scopes allow.

## Tools (81)

| Tool | What it does | Kind | A bot token needs |
| --- | --- | --- | --- |
| `search_messages` | Full-text search over the messages you can read (accent-insensitive, prefix matching). | reads | `channels:history`, `groups:history`, `im:history`, `mpim:history` |
| `list_channels` | Lists the public channels of the workspace and the private channels you were added to, with member counts and purposes. | reads | `channels:read` |
| `read_channel` | Reads the most recent messages of a channel, oldest first. | reads |  |
| `read_thread` | Reads a message and every reply in its thread, oldest first. | reads |  |
| `find_people` | Finds members of the workspace by name, @handle or job title; shows whether they are online, their time zone and whether they are a bot. | reads | `users:read` |
| `post_message` | Posts a message as you in a channel (public, or private when you are a member). | changes (asks first) | `chat:write` |
| `add_reaction` | Adds an emoji reaction (a unicode emoji such as "👍" or "✅") to a message, as you. | writes | `reactions:write` |
| `list_canvases` | Lists the canvases (collaborative documents) you can open: title, whether you can edit, last edit and the first words. | reads | `canvases:read` |
| `read_canvas` | Reads a canvas as Markdown (people as @handle, channels as #name). | reads | `canvases:read` |
| `create_canvas` | Creates a canvas owned by you from Markdown or a template. | writes | `canvases:write` |
| `update_canvas` | Writes Markdown into a canvas you may edit: append (default), prepend, or replace its whole content. | changes (asks first) | `canvases:write` |
| `create_canvas_page` | Adds a page (a subpage) inside a canvas you can edit, from Markdown, and links it at the end of that canvas. | writes | `canvases:write` |
| `find_lists` | Lists you can open (trackers, to-do lists): title, items, whether you can edit, {id:…}. | reads | `lists:read` |
| `read_list` | A list’s fields (key, kind, options) and live items with values and {id:…}. | reads | `lists:read` |
| `create_list` | Makes a new list for the person who asked (default fields: Status, Assignee, Due date). | writes | `lists:write` |
| `add_list_items` | Adds items (title + values by field key, as people type them: option names, @handles, YYYY-MM-DD). | writes | `lists:write` |
| `update_list_items` | Changes items by id: title, values by field key (only what changes; "" clears), archived. | writes | `lists:write` |
| `comment_on_item` | Comments on an item as you (Markdown; @handles notify). | changes (asks first) | `lists:write` |
| `find_templates` | First step whenever someone wants a channel set up for something (bug reports, requests, a project), even before create_channel: find the template, then apply_template. | reads | `tabs:read` |
| `apply_template` | Adds a channel template to a channel, for the asker. | writes | `tabs:write` |
| `save_channel_as_template` | Saves a channel's tabs (canvases, lists, workflows, agent role) as a template for the asker. | writes | `tabs:read` |
| `reply_in_thread` | Replies in the thread of a message (pass any message of the thread), as you. | changes (asks first) | `chat:write` |
| `send_direct_message` | Sends a direct message to one person of the workspace, as you (opens the conversation if there is none yet). | changes (asks first) | `chat:write`, `im:write` |
| `search_files` | Finds files sent in conversations you can read, newest first: by name words, channel, type or sender (nothing given: the latest). | reads | `files:read`, `channels:history`, `groups:history`, `im:history`, `mpim:history` |
| `share_message` | Shares a message, as a card, in a channel or a person’s DM, with an optional comment ("send this to #sales"). | changes (asks first) | `chat:write` |
| `edit_message` | Replaces the text of a message you wrote (people see it marked as edited). | changes (asks first) | `chat:write` |
| `delete_message` | Deletes a message you wrote, for everyone (the first message of a thread takes its replies with it). | changes (asks first) | `chat:write` |
| `remove_link_preview` | Takes the preview card of a link off a message you wrote, for everyone (the link stays in the text). | changes (asks first) | `chat:write` |
| `create_channel` | Creates a channel (public by default) with a name in lower case (letters, digits, dashes) and an optional purpose; the person who asked joins it with you. | writes |  |
| `add_to_channel` | Adds people (by @handle) to a channel you are in. | writes |  |
| `set_channel_topic` | Sets the topic and/or the purpose of a channel you are in (an empty text clears it). | writes |  |
| `find_workflows` | Lists the workspace’s workflows the person you work for can change or start: name, id, what starts it, whether it is published and on, how many steps. | reads | people only |
| `read_workflow` | Reads one workflow the person may change: what starts it, its steps as JSON (the same shape save_workflow takes), whether it is published, what is still missing (issues) and its link in the builder. | reads | people only |
| `publish_workflow` | Makes a workflow’s draft live (it starts running on its trigger). | changes (asks first) | people only |
| `get_message` | Reads one message by id: where it is, who wrote it and when, its text and files, whether it was edited, its thread (the root, or how many replies it has) and its reactions. | reads |  |
| `get_person` | Shows one member of the workspace by @handle or id: name, title, role, status, time zone with their local time now, whether they are online and whether they are a bot. | reads | `users:read` |
| `list_workflows` | Lists the published workflows you may start by link (the ones people start from a channel’s Workflows menu): id, name, description. | reads | `workflows:run` |
| `run_workflow` | Starts a workflow from list_workflows, as you, optionally in a channel (its steps can then use that channel). | changes (asks first) | `workflows:run` |
| `reply_as_agent` | Answers a message the person wrote to you in Slaiky (from the message.received event), as your own agent there, not as them: in the thread when the message was in one or in a channel, otherwise in your direct message with them. | changes (asks first) | people only |
| `post_as_agent` | Writes a new message as your own agent in Slaiky, not as the person: by default in your direct message with them, to tell them something first (a task you finished, something that needs them); or in a channel your agent is in (channel), optionally in a thread there (threadId). | changes (asks first) | people only |
| `upload_file` | Posts files in a conversation, as you, with an optional message: in a channel, in a thread (messageId: any message of it) or in a person’s DM. | changes (asks first) | `files:write`, `chat:write` |
| `get_upload_url` | For a big file when you can run a command or make HTTP requests (curl, a script): gives a one-time address; POST the file’s bytes there within a few minutes, then pass its uploadId to upload_file (or reply_as_agent). | writes | `files:write` |
| `download_file` | Gives a link that downloads the original of a file you can read (any type), for when you need the file itself on your side: to save it, open it with a program or convert it. | reads | `files:read` |
| `list_my_conversations` | Lists the conversations you are in (channels, direct and group messages), most recent activity first, with how many new messages you have not read in each. | reads | `channels:read` |
| `get_workspace` | Shows the workspace you act in: its name, slug and address, who you are there (@handle and role) and how many people, bots and channels it has. | reads |  |
| `get_app_link` | Gives the Slaiky address that opens a channel, a message (in its thread when it has one) or a canvas, for the person to click. | reads |  |
| `find_tools` | Searches Slaiky’s tool catalog by what you want to do (e.g. | reads |  |
| `list_channel_tabs` | The tabs under a channel’s header, in order, folders with what is in them: each with its kind, title, the item it opens and its {tab:…} id. | reads | `tabs:read` |
| `add_channel_tab` | Adds a tab to a channel you are in: a canvas, board, list, saved list view or workflow (item: its id), a link (url) or a folder (title). | writes | `tabs:write` |
| `update_channel_tab` | Renames a tab, changes its emoji or a link’s address, hides or shows it, or moves it (after or before another tab, into a folder, or back to the row with folder ""). | writes | `tabs:write` |
| `remove_channel_tab` | Removes a tab from a channel (a folder takes what is in it along); the canvas, list or workflow it opened stays. | changes (asks first) | `tabs:write` |
| `set_channel_tabs_policy` | Sets who may add, rename, move and remove the tabs of a channel’s row: everyone in it, or only its managers (its creator, owners and admins). | writes | `tabs:write` |
| `rename_channel` | Gives a channel a new name (lower case, digits, dashes); everyone in it sees a note about it. | writes |  |
| `set_channel_visibility` | Turns a public channel private (only its members see it from then on; everyone else loses it) or a private one public (everyone in the workspace can then find it and read its whole history). | changes (asks first) |  |
| `archive_channel` | Archives a channel (nobody can post; it stays readable and searchable) or brings it back with archived: false. | changes (asks first) |  |
| `list_channel_members` | Who is in a channel or conversation you can read: each person’s name, @handle, title and id; apps (bots) apart. | reads |  |
| `remove_from_channel` | Removes a person from a channel (they can join a public one again). | changes (asks first) |  |
| `join_channel` | Joins a public channel (you then get its messages and can post there). | writes | `channels:join` |
| `leave_channel` | Leaves a channel: you stop getting its messages (a private one only lets you back if someone adds you). | changes (asks first) |  |
| `update_list` | Changes a list’s title, emoji or description (only what you pass). | writes | `lists:write` |
| `archive_list` | Archives a list (read-only for everyone, out of the lists people browse) or brings it back with archived: false. | changes (asks first) | `lists:write` |
| `delete_list` | Deletes a list with its items, fields, views and comments, for everyone; its tabs go too. | changes (asks first) | `lists:write` |
| `add_list_field` | Adds a field (a column) to a list you can edit: its name, kind and, for select, multi_select and status, its choices in order. | writes | `lists:write` |
| `update_list_field` | Renames a field, sets whether it is required, moves it (after or before another field), or replaces its choices (the full list, in order: a choice whose name stays keeps its color and the items that have it; a choice left out is removed). | writes | `lists:write` |
| `delete_list_field` | Deletes a field from a list and its value in every item, for everyone (the title field stays). | changes (asks first) | `lists:write` |
| `read_list_views` | The saved views of a list (shared ones and your own): name, layout, filter, sort, grouping, hidden fields, which one it opens in, and {view:…}. | reads | `lists:read` |
| `create_list_view` | Saves a view of a list: a layout (table, board or calendar) with a filter, sort, grouping and hidden fields. | writes | `lists:write` |
| `update_list_view` | Changes a saved view of a list (only what you pass): its name, layout, filter, sort, grouping, hidden fields, whether it is shared, or makes it the one the list opens in. | writes | `lists:write` |
| `delete_list_view` | Deletes a saved view of a list (its items stay; a list keeps at least one shared view); its tabs go too. | changes (asks first) | `lists:write` |
| `read_item_comments` | The comments on a list item, oldest first: who wrote each, when, and what (Markdown). | reads | `lists:read` |
| `list_canvas_pages` | The page tree of a canvas (or of the canvas a page is in): its top canvas and every page inside it, nested, each with {id:…} for read_canvas and update_canvas. | reads | `canvases:read` |
| `rename_canvas` | Changes a canvas’s or a page’s title or emoji (only what you pass) when you may edit it. | writes | `canvases:write` |
| `archive_canvas` | Archives a canvas with its pages (read-only for everyone) or brings it back with archived: false. | changes (asks first) | `canvases:write` |
| `delete_canvas` | Deletes a canvas with every page inside it, or one page with the pages inside it, for everyone; tabs that opened them go too. | changes (asks first) | `canvases:write` |
| `set_member_title` | Sets the title under a person’s name (e.g. | writes | people only |
| `read_draft` | Your unsent draft in a conversation or thread (what the composer holds for you there, on every device): its text and attached files. | reads | people only |
| `save_draft` | Writes your draft in a conversation or thread without sending it: the composer shows it there, on every device, for you to review and send. | changes (asks first) | people only |
| `preview_template` | What adding a channel template (find_templates) to a channel would do, part by part, without changing anything: what would be added, added as a draft, become a tab, or can’t be added and why. | reads | `tabs:read` |
| `delete_template` | Deletes a template you manage (one saved from a channel or imported; find_templates shows its id), for everyone it was shared with. | changes (asks first) | people only |
| `save_workflow_draft` | Writes a whole workflow (the JSON read_workflow gives, changed) as a draft: a new one without workflowId, or the working copy of one you may change. | writes | people only |
| `read_file` | Reads a file attached to a message you can read: the text of text files and documents (PDF, Word, spreadsheets, slides), what was said in an audio file, or a picture (shown when your app sees pictures), from any point. | reads | `files:read` |

Every client gets all of them at `https://app.slaiky.xyz/api/mcp`. ChatGPT’s plugin gets the first 11 (the ones its review covered) until its next version; `https://app.slaiky.xyz/api/mcp?tools=full` gives it the rest.

## Resources

| URI | What |
| --- | --- |
| `slaiky://workspace` | The workspaces you may act in and who you act as (a bot: its workspace and the bot). |
| `slaiky://channels` | Channels you can read, with purpose and member count (a bot: the kinds whose `:read` permission its app holds). |
| `slaiky://channels/{channelId}/messages` | The 50 most recent messages of a channel (thread replies excluded), oldest first (a bot: with the channel’s `:history` permission). |

## Inputs

### `search_messages`

Full-text search over the messages you can read (accent-insensitive, prefix matching). Filters: in:#channel, from:@person, has:file, has:link. Returns up to 15 hits as lines "#channel · [time] Name (@handle): text {id:…}".

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `query` | string | yes | Search terms and optional filters, e.g. "deploy in:#eng from:@marina". 1–500 characters. |

### `list_channels`

Lists the public channels of the workspace and the private channels you were added to, with member counts and purposes. Start here to discover where conversations happen.

No arguments.

### `read_channel`

Reads the most recent messages of a channel, oldest first. Each line ends with {id:…} (and the reply count when the message has a thread); pass that id to read_thread or add_reaction.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `limit` | integer | no | How many messages, 1–50 (default 20). 1–50. |

### `read_thread`

Reads a message and every reply in its thread, oldest first.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id, as shown in {id:…} by the read and search tools. |

### `find_people`

Finds members of the workspace by name, @handle or job title; shows whether they are online, their time zone and whether they are a bot. Empty query lists people.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `query` | string | no | Name, @handle or title fragment. Up to 80 characters. |

### `post_message`

Posts a message as you in a channel (public, or private when you are a member). Markdown is supported: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Only post when the user asked you to; each call posts a new message (a retry posts it again).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `text` | string | yes | Message text (Markdown). 1–8,000 characters. |

### `add_reaction`

Adds an emoji reaction (a unicode emoji such as "👍" or "✅") to a message, as you.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id, as shown in {id:…} by the read and search tools. |
| `emoji` | string | yes | A unicode emoji. 1–32 characters. |

### `list_canvases`

Lists the canvases (collaborative documents) you can open: title, whether you can edit, last edit and the first words. Optional query searches titles and text (accent-insensitive). Lines end with {id:…}.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `query` | string | no | Words to find in titles and text. Up to 500 characters. |

### `read_canvas`

Reads a canvas as Markdown (people as @handle, channels as #name). Refer to it by id, exact title, or "#channel" for that channel’s canvas. Markdown, as in messages: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Canvases also take tables (| a | b | with a |---| row) and callouts (> [!NOTE], [!TIP], [!WARNING], [!CAUTION]).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `canvas` | string | yes | Canvas id, exact title, or "#channel". 1–200 characters. |

### `create_canvas`

Creates a canvas owned by you from Markdown or a template. With "channel", shares it there as a card (the channel gets view or edit access). Only when the user asked for it. Markdown, as in messages: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Canvases also take tables (| a | b | with a |---| row) and callouts (> [!NOTE], [!TIP], [!WARNING], [!CAUTION]).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `title` | string | no | Title. Up to 120 characters. |
| `markdown` | string | no | Markdown, as in messages: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Canvases also take tables (\| a \| b \| with a \|---\| row) and callouts (> [!NOTE], [!TIP], [!WARNING], [!CAUTION]). Up to 200,000 characters. |
| `template` | `"meeting"` / `"brief"` / `"onboarding"` / `"retro"` | no | Start from a template instead of Markdown. |
| `channel` | string | no | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `access` | `"view"` / `"edit"` | no | What the channel may do with it (default view). |
| `message` | string | no | Message posted with the card. Up to 4,000 characters. |

### `create_canvas_page`

Adds a page (a subpage) inside a canvas you can edit, from Markdown, and links it at the end of that canvas. The page has that canvas’s access. Only when the user asked for it. Markdown, as in messages: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Canvases also take tables (| a | b | with a |---| row) and callouts (> [!NOTE], [!TIP], [!WARNING], [!CAUTION]).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `canvas` | string | yes | The canvas (or page) the new page goes in: id, exact title, or "#channel". 1–200 characters. |
| `title` | string | no | Title. Up to 120 characters. |
| `markdown` | string | no | Markdown, as in messages: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Canvases also take tables (\| a \| b \| with a \|---\| row) and callouts (> [!NOTE], [!TIP], [!WARNING], [!CAUTION]). Up to 200,000 characters. |

### `update_canvas`

Writes Markdown into a canvas you may edit: append (default), prepend, or replace its whole content. People who have it open see the edit live; earlier versions stay in its history. Markdown, as in messages: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Canvases also take tables (| a | b | with a |---| row) and callouts (> [!NOTE], [!TIP], [!WARNING], [!CAUTION]).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `canvas` | string | yes | Canvas id, exact title, or "#channel". 1–200 characters. |
| `markdown` | string | yes | Markdown, as in messages: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Canvases also take tables (\| a \| b \| with a \|---\| row) and callouts (> [!NOTE], [!TIP], [!WARNING], [!CAUTION]). Up to 200,000 characters. |
| `mode` | `"append"` / `"prepend"` / `"replace"` | no | Where it goes (default append). |

### `find_lists`

Lists you can open (trackers, to-do lists): title, items, whether you can edit, {id:…}. When asked to add something to a tracker or list, find it here, then add_list_items; don’t ask which one first.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `query` | string | no | Words in the title. Up to 500 characters. |

### `read_list`

A list’s fields (key, kind, options) and live items with values and {id:…}. Read it before writing items. filter rules use field keys; values are option ids, person ids or "me", YYYY-MM-DD or today.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `query` | string | no | Words in items. Up to 200 characters. |
| `filter` | object | no |  |
| `limit` | integer | no | 1–500. |

### `create_list`

Makes a new list for the person who asked (default fields: Status, Assignee, Due date). With channel: shared there and in its tabs. Only when asked for a new list, never to add to one.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `title` | string | yes | 1–120 characters. |
| `description` | string | no | Up to 1,000 characters. |
| `fields` | array of object | no | Up to 49 items. |
| `channel` | string | no | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |

### `add_list_items`

Adds items (title + values by field key, as people type them: option names, @handles, YYYY-MM-DD). Values that don’t fit are reported. When asked to put something in a list, do it.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `items` | array of object | yes | Up to 50 items. |

### `update_list_items`

Changes items by id: title, values by field key (only what changes; "" clears), archived.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `items` | array of object | yes | Up to 50 items. |

### `comment_on_item`

Comments on an item as you (Markdown; @handles notify). Only when asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `item` | id | yes |  |
| `text` | string | yes | 1–4,000 characters. |

### `find_templates`

First step whenever someone wants a channel set up for something (bug reports, requests, a project), even before create_channel: find the template, then apply_template. Templates bring a guide, a tracker list, forms, workflows and an agent.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `query` | string | no | Words to match. Up to 500 characters. |
| `kind` | `"channel"` / `"canvas"` / `"list"` | no |  |
| `channel` | string | no | Suggest for this channel. 1–80 characters. |
| `template` | string | no | Template id: its parts. 1–80 characters. |

### `apply_template`

Adds a channel template to a channel, for the asker. Only when asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `template` | string | yes | Template id. 1–80 characters. |
| `parts` | array of string | no | Part keys. Up to 20 items. |
| `blanks` | map of string | no | @handle, YYYY-MM-DD or text. |

### `save_channel_as_template`

Saves a channel's tabs (canvases, lists, workflows, agent role) as a template for the asker. Only when asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `name` | string | yes | 1–60 characters. |
| `description` | string | no | Up to 200 characters. |
| `emoji` | string | no | Up to 16 characters. |
| `visibility` | `"private"` / `"workspace"` | no | workspace: everyone can use it (admins). |
| `includeItems` | boolean | no | Keep the lists' items. |

### `reply_in_thread`

Replies in the thread of a message (pass any message of the thread), as you. With alsoSendToChannel, the reply also shows in the channel. Markdown is supported: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Only reply when the user asked you to; each call posts a new reply.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id, as shown in {id:…} by the read and search tools. |
| `text` | string | yes | Reply text (Markdown). 1–8,000 characters. |
| `alsoSendToChannel` | boolean | no | Also show the reply in the channel (default false). |

### `send_direct_message`

Sends a direct message to one person of the workspace, as you (opens the conversation if there is none yet). Markdown is supported: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Only send when the user asked you to; each call sends a new message.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `person` | string | yes | @handle or person id. 1–80 characters. |
| `text` | string | yes | Message text (Markdown). 1–8,000 characters. |

### `search_files`

Finds files sent in conversations you can read, newest first: by name words, channel, type or sender (nothing given: the latest). Lines end with {file:…} (for read_file, send_file, download_file) and the message {id:…}.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `query` | string | no | Words in the file name. Up to 200 characters. |
| `channel` | string | no | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `type` | `"pdf"` / `"image"` / `"audio"` / `"video"` / `"document"` / `"spreadsheet"` / `"presentation"` / `"text"` / `"archive"` | no |  |
| `from` | string | no | @handle of who sent it. Up to 80 characters. |
| `limit` | integer | no | 1–50 (default 20). 1–50. |

### `share_message`

Shares a message, as a card, in a channel or a person’s DM, with an optional comment ("send this to #sales"). Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | The message to share. |
| `channel` | string | no | Where: a channel. 1–80 characters. |
| `person` | string | no | Or a person (@handle): your DM with them. 1–80 characters. |
| `text` | string | no | A comment (Markdown). Up to 4,000 characters. |

### `edit_message`

Replaces the text of a message you wrote (people see it marked as edited). Markdown is supported: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Only your own messages, and only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id, as shown in {id:…} by the read and search tools. |
| `text` | string | yes | The new text (Markdown). 1–8,000 characters. |

### `delete_message`

Deletes a message you wrote, for everyone (the first message of a thread takes its replies with it). Only your own messages, and only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id, as shown in {id:…} by the read and search tools. |

### `remove_link_preview`

Takes the preview card of a link off a message you wrote, for everyone (the link stays in the text). Without url, every preview of the message goes. Only your own messages, and only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id, as shown in {id:…} by the read and search tools. |
| `url` | string | no | The link whose preview goes, as written in the message. 1–2,000 characters. |

### `create_channel`

Creates a channel (public by default) with a name in lower case (letters, digits, dashes) and an optional purpose; the person who asked joins it with you. Only when the user asked for it.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `name` | string | yes | Channel name, e.g. "launch-v2". 1–80 characters. |
| `purpose` | string | no | What the channel is for. Up to 250 characters. |
| `private` | boolean | no | Private channel (default false). |

### `add_to_channel`

Adds people (by @handle) to a channel you are in. Only when the user asked for it.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `people` | array of string | yes | @handles of the people to add. Up to 50 items. |

### `set_channel_topic`

Sets the topic and/or the purpose of a channel you are in (an empty text clears it). Everyone in the channel sees a short note about the change. Only when the user asked for it.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `topic` | string | no | New topic. Up to 250 characters. |
| `purpose` | string | no | New purpose. Up to 250 characters. |

### `find_workflows`

Lists the workspace’s workflows the person you work for can change or start: name, id, what starts it, whether it is published and on, how many steps. Optional query filters by name.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `query` | string | no | Words in the name or description. Up to 120 characters. |

### `read_workflow`

Reads one workflow the person may change: what starts it, its steps as JSON (the same shape save_workflow takes), whether it is published, what is still missing (issues) and its link in the builder. Keys and passwords in web requests read as "[hidden]": keep them as they are when you save.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `workflowId` | id | yes | Workflow id from find_workflows. |

### `publish_workflow`

Makes a workflow’s draft live (it starts running on its trigger). The person you work for says yes first. If something is missing, says what.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `workflowId` | id | yes | Workflow id. |

### `get_message`

Reads one message by id: where it is, who wrote it and when, its text and files, whether it was edited, its thread (the root, or how many replies it has) and its reactions.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id, as shown in {id:…} by the read and search tools. |

### `get_person`

Shows one member of the workspace by @handle or id: name, title, role, status, time zone with their local time now, whether they are online and whether they are a bot. Use find_people first when you only know part of a name.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `person` | string | yes | @handle or person id. 1–80 characters. |

### `list_workflows`

Lists the published workflows you may start by link (the ones people start from a channel’s Workflows menu): id, name, description.

No arguments.

### `run_workflow`

Starts a workflow from list_workflows, as you, optionally in a channel (its steps can then use that channel). Returns the run status: done, running, waiting (a person must click or fill a form) or error. Its steps may post messages, create channels or call web addresses its author set up, so only run one when the user asked you to.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `workflowId` | id | yes | Workflow id from list_workflows. |
| `channel` | string | no | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |

### `reply_as_agent`

Answers a message the person wrote to you in Slaiky (from the message.received event), as your own agent there, not as them: in the thread when the message was in one or in a channel, otherwise in your direct message with them. Markdown is supported: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Attach files (a PDF, a picture, a sheet…) with files, each from text, base64, url or an uploadId from get_upload_url. Each call posts a new message.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | The message_id of the message.received event (or any message of that conversation). |
| `text` | string | no | Your answer (Markdown). Optional when you send files. Up to 8,000 characters. |
| `files` | array of object | no | Files that go with the answer. Up to 10 items. |

### `post_as_agent`

Writes a new message as your own agent in Slaiky, not as the person: by default in your direct message with them, to tell them something first (a task you finished, something that needs them); or in a channel your agent is in (channel), optionally in a thread there (threadId). The first call gives you your agent in Slaiky, named after your app (they can rename it). To answer a message they wrote to you, use reply_as_agent. Markdown is supported: **bold**, _italic_, ++underline++, ~~strike~~, `code`, ``` code blocks, > quotes, - and 1. lists, - [ ] tasks, # / ## / ### headings, --- dividers, [text](https://link), @handle, #channel, :emoji:. Attach files with files, each from text, base64, url or an uploadId from get_upload_url. Each call posts a new message.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `text` | string | no | What to say (Markdown). Optional when you send files. Up to 8,000 characters. |
| `channel` | string | no | A channel your agent is in ("#name" or id). Leave empty for your direct message with the person. 1–80 characters. |
| `threadId` | id | no | Post in the thread of this message (in that channel). |
| `files` | array of object | no | Files that go with the message. Up to 10 items. |

### `upload_file`

Posts files in a conversation, as you, with an optional message: in a channel, in a thread (messageId: any message of it) or in a person’s DM. Any kind of file: PDF, pictures, Word, spreadsheets, slides, audio, video, archives. Each file comes from exactly one of: text (a text file you write), base64 (the bytes of any file, up to a few MB), url (a public https address Slaiky downloads it from) or uploadId (a bigger file you sent through get_upload_url). Only when the user asked; each call posts a new message.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `files` | array of object | yes | The files, 1–10. Up to 10 items. |
| `channel` | string | no | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `messageId` | id | no | Post in the thread of this message (any message of the thread). |
| `person` | string | no | @handle or person id: post in your DM with them. 1–80 characters. |
| `text` | string | no | A message that goes with them (Markdown). Up to 8,000 characters. |
| `alsoSendToChannel` | boolean | no | In a thread: also show it in the channel (default false). |

### `get_upload_url`

For a big file when you can run a command or make HTTP requests (curl, a script): gives a one-time address; POST the file’s bytes there within a few minutes, then pass its uploadId to upload_file (or reply_as_agent). Small files are simpler with upload_file’s text or base64.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `filename` | string | yes | The file name people see, with its extension. 1–200 characters. |
| `length` | integer | yes | The file’s exact size in bytes. 1–10,737,418,240. |
| `mime` | string | no | Its type, e.g. "application/pdf" (checked against the bytes). Up to 120 characters. |

### `download_file`

Gives a link that downloads the original of a file you can read (any type), for when you need the file itself on your side: to save it, open it with a program or convert it. It works for a few minutes and anyone holding it can download the file, so use it yourself and don’t post it. To read a document or see a picture, read_file is enough.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `file` | id | yes | The file’s id ({file:…}). |

### `list_my_conversations`

Lists the conversations you are in (channels, direct and group messages), most recent activity first, with how many new messages you have not read in each. Lines end with {channel:…}: pass that id where a tool takes a channel.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `limit` | integer | no | How many, 1–100 (default 30). 1–100. |

### `get_workspace`

Shows the workspace you act in: its name, slug and address, who you are there (@handle and role) and how many people, bots and channels it has.

No arguments.

### `get_app_link`

Gives the Slaiky address that opens a channel, a message (in its thread when it has one) or a canvas, for the person to click. Only things you can see get a link.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | no | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `messageId` | id | no | Message id, as shown in {id:…} by the read and search tools. |
| `canvasId` | id | no | Canvas id, as shown by list_canvases. |

### `find_tools`

Searches Slaiky’s tool catalog by what you want to do (e.g. "send a direct message", "who is online") and returns the matching tools with what each needs: its name, what it does, its inputs and the permission (scope) your connection must grant. Use it when the tool you need is not listed.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `query` | string | yes | What you want to do, in a few words. 1–200 characters. |

### `list_channel_tabs`

The tabs under a channel’s header, in order, folders with what is in them: each with its kind, title, the item it opens and its {tab:…} id. Says who may change the row.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |

### `add_channel_tab`

Adds a tab to a channel you are in: a canvas, board, list, saved list view or workflow (item: its id), a link (url) or a folder (title). With folder, it goes inside that folder tab. A canvas or list the channel can’t open yet needs share (view or edit) to share it too.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `kind` | `"canvas"` / `"board"` / `"list"` / `"view"` / `"workflow"` / `"link"` / `"folder"` | yes |  |
| `item` | id | no | For canvas, board, list, view, workflow: the item’s id (list_canvases, find_lists, read_list_views, find_workflows). |
| `url` | string | no | For link: the https address. Up to 2,000 characters. |
| `title` | string | no | The tab’s name (a folder needs one). Up to 80 characters. |
| `emoji` | string | no | Up to 16 characters. |
| `folder` | id | no | Inside this folder (its tab id). |
| `after` | string | no | Put it right after this tab (its id; "messages": first). Up to 60 characters. |
| `before` | string | no | Or right before this tab (its id). Up to 60 characters. |
| `share` | `"view"` / `"edit"` | no | Also share the canvas or list with the channel. |

### `update_channel_tab`

Renames a tab, changes its emoji or a link’s address, hides or shows it, or moves it (after or before another tab, into a folder, or back to the row with folder ""). Only what you pass changes.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `tab` | string | yes | Tab id ({tab:…} from list_channel_tabs; built-in tabs are system:canvas, system:files, system:pins, system:workflows). 1–60 characters. |
| `title` | string | no | New name ("" goes back to the item’s own name). Up to 80 characters. |
| `emoji` | string | no | Up to 16 characters. |
| `url` | string | no | A link tab’s new address. Up to 2,000 characters. |
| `hidden` | boolean | no | Hide (true) or show (false) it. |
| `folder` | string | no | Move it into this folder (its tab id); "" moves it back to the row. Up to 60 characters. |
| `after` | string | no | Put it right after this tab (its id; "messages": first). Up to 60 characters. |
| `before` | string | no | Or right before this tab (its id). Up to 60 characters. |

### `remove_channel_tab`

Removes a tab from a channel (a folder takes what is in it along); the canvas, list or workflow it opened stays. Built-in tabs can only be hidden (update_channel_tab with hidden). Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `tab` | string | yes | Tab id ({tab:…} from list_channel_tabs; built-in tabs are system:canvas, system:files, system:pins, system:workflows). 1–60 characters. |

### `set_channel_tabs_policy`

Sets who may add, rename, move and remove the tabs of a channel’s row: everyone in it, or only its managers (its creator, owners and admins). Only managers decide.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `policy` | `"everyone"` / `"managers"` | yes |  |

### `rename_channel`

Gives a channel a new name (lower case, digits, dashes); everyone in it sees a note about it. Its managers only (its creator, owners and admins). Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `name` | string | yes | The new name, e.g. "launch-v2". 1–80 characters. |

### `set_channel_visibility`

Turns a public channel private (only its members see it from then on; everyone else loses it) or a private one public (everyone in the workspace can then find it and read its whole history). Its managers only (its creator, owners and admins); the general channel stays public. Everyone in it sees a note about it. Only when the user asked for exactly this.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `private` | boolean | yes | true makes it private, false makes it public. |

### `archive_channel`

Archives a channel (nobody can post; it stays readable and searchable) or brings it back with archived: false. Its managers only; the general channel can’t be archived. Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `archived` | boolean | no | false brings it back (default true). |

### `list_channel_members`

Who is in a channel or conversation you can read: each person’s name, @handle, title and id; apps (bots) apart.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |

### `remove_from_channel`

Removes a person from a channel (they can join a public one again). Its managers only. Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `person` | string | yes | @handle or person id. 1–80 characters. |

### `join_channel`

Joins a public channel (you then get its messages and can post there). Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |

### `leave_channel`

Leaves a channel: you stop getting its messages (a private one only lets you back if someone adds you). Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |

### `update_list`

Changes a list’s title, emoji or description (only what you pass). Its items stay as they are.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `title` | string | no | Up to 120 characters. |
| `emoji` | string | no | "" removes it. Up to 16 characters. |
| `description` | string | no | Up to 1,000 characters. |

### `archive_list`

Archives a list (read-only for everyone, out of the lists people browse) or brings it back with archived: false. Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `archived` | boolean | no | false brings it back (default true). |

### `delete_list`

Deletes a list with its items, fields, views and comments, for everyone; its tabs go too. Only its managers. Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |

### `add_list_field`

Adds a field (a column) to a list you can edit: its name, kind and, for select, multi_select and status, its choices in order. At the end unless after or before another field.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `name` | string | yes | 1–60 characters. |
| `kind` | `"text"` / `"long_text"` / `"number"` / `"select"` / `"multi_select"` / `"status"` / `"person"` / `"date"` / `"checkbox"` / `"url"` / `"email"` / `"channel"` / `"message"` / `"file"` / `"created_by"` / `"created_at"` / `"updated_at"` | yes |  |
| `options` | array of string | no | Choices, in order (select, multi_select, status). Up to 100 items. |
| `multiple` | boolean | no | person: several people. |
| `required` | boolean | no |  |
| `after` | string | no | Field key (read_list), id or exact name. 1–60 characters. |
| `before` | string | no | Field key (read_list), id or exact name. 1–60 characters. |

### `update_list_field`

Renames a field, sets whether it is required, moves it (after or before another field), or replaces its choices (the full list, in order: a choice whose name stays keeps its color and the items that have it; a choice left out is removed).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `field` | string | yes | Field key (read_list), id or exact name. 1–60 characters. |
| `name` | string | no | 1–60 characters. |
| `options` | array of string | no | Every choice, in order (select, multi_select, status). Up to 100 items. |
| `required` | boolean | no |  |
| `after` | string | no | Field key (read_list), id or exact name. 1–60 characters. |
| `before` | string | no | Field key (read_list), id or exact name. 1–60 characters. |

### `delete_list_field`

Deletes a field from a list and its value in every item, for everyone (the title field stays). Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `field` | string | yes | Field key (read_list), id or exact name. 1–60 characters. |

### `read_list_views`

The saved views of a list (shared ones and your own): name, layout, filter, sort, grouping, hidden fields, which one it opens in, and {view:…}.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |

### `create_list_view`

Saves a view of a list: a layout (table, board or calendar) with a filter, sort, grouping and hidden fields. Shared with everyone who opens the list unless shared is false.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `name` | string | yes | 1–60 characters. |
| `layout` | `"table"` / `"board"` / `"calendar"` | yes | table, board (grouped columns) or calendar. |
| `filter` | object | no | Which items it shows: { match: "all"\|"any", rules: [{ field: <key>, op, value }] } (as in read_list). |
| `sort` | array of object | no | [{ field: <key>, dir: "asc"\|"desc" }]. Up to 3 items. |
| `groupBy` | string | no | A field key to group by (a board groups by it); "" for none. Up to 60 characters. |
| `hiddenFields` | array of string | no | Field keys it hides. Up to 50 items. |
| `shared` | boolean | no | false: only you see it. |
| `default` | boolean | no | Make it the view the list opens in. |

### `update_list_view`

Changes a saved view of a list (only what you pass): its name, layout, filter, sort, grouping, hidden fields, whether it is shared, or makes it the one the list opens in.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `view` | [view](/docs/reference/blocks#views) | yes | View id ({view:…} from read_list_views) or exact name. 1–60 characters. |
| `name` | string | no | 1–60 characters. |
| `layout` | `"table"` / `"board"` / `"calendar"` | no | table, board (grouped columns) or calendar. |
| `filter` | object | no | Which items it shows: { match: "all"\|"any", rules: [{ field: <key>, op, value }] } (as in read_list). |
| `sort` | array of object | no | [{ field: <key>, dir: "asc"\|"desc" }]. Up to 3 items. |
| `groupBy` | string | no | A field key to group by (a board groups by it); "" for none. Up to 60 characters. |
| `hiddenFields` | array of string | no | Field keys it hides. Up to 50 items. |
| `shared` | boolean | no | false: only you see it. |
| `default` | boolean | no | Make it the view the list opens in. |

### `delete_list_view`

Deletes a saved view of a list (its items stay; a list keeps at least one shared view); its tabs go too. Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `view` | [view](/docs/reference/blocks#views) | yes | View id ({view:…} from read_list_views) or exact name. 1–60 characters. |

### `read_item_comments`

The comments on a list item, oldest first: who wrote each, when, and what (Markdown).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `list` | string | yes | List id or exact title. 1–200 characters. |
| `item` | id | yes | The item id from read_list. |

### `list_canvas_pages`

The page tree of a canvas (or of the canvas a page is in): its top canvas and every page inside it, nested, each with {id:…} for read_canvas and update_canvas.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `canvas` | string | yes | Canvas id, exact title, or "#channel". 1–200 characters. |

### `rename_canvas`

Changes a canvas’s or a page’s title or emoji (only what you pass) when you may edit it. Its content stays.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `canvas` | string | yes | Canvas id, exact title, or "#channel". 1–200 characters. |
| `title` | string | no | Up to 120 characters. |
| `emoji` | string | no | "" removes it. Up to 16 characters. |

### `archive_canvas`

Archives a canvas with its pages (read-only for everyone) or brings it back with archived: false. Only its managers (its owner, admins). Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `canvas` | string | yes | Canvas id, exact title, or "#channel". 1–200 characters. |
| `archived` | boolean | no | false brings it back (default true). |

### `delete_canvas`

Deletes a canvas with every page inside it, or one page with the pages inside it, for everyone; tabs that opened them go too. Its managers, or the author of a page. Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `canvas` | string | yes | Canvas id, exact title, or "#channel". 1–200 characters. |

### `set_member_title`

Sets the title under a person’s name (e.g. "Designer"; "" clears it), and with locked, whether only admins may change it from then on. Owners and admins only; an admin’s title only by the owner.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `person` | string | yes | @handle or person id. 1–80 characters. |
| `title` | string | yes | The title ("" clears it). Up to 80 characters. |
| `locked` | boolean | no | true: only admins change it from now on; false: they can again. |

### `read_draft`

Your unsent draft in a conversation or thread (what the composer holds for you there, on every device): its text and attached files. Empty when there is none.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `messageId` | id | no | For a thread’s draft: any message of the thread. |

### `save_draft`

Writes your draft in a conversation or thread without sending it: the composer shows it there, on every device, for you to review and send. It replaces the draft there; empty text (and no files) removes it. fileIds: files you uploaded and haven’t sent (left out: the draft keeps its files).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `text` | string | yes | The draft (Markdown). Up to 40,000 characters. |
| `messageId` | id | no | For a thread’s draft: any message of the thread. |
| `fileIds` | array of id | no | Up to 10 items. |

### `preview_template`

What adding a channel template (find_templates) to a channel would do, part by part, without changing anything: what would be added, added as a draft, become a tab, or can’t be added and why. Then apply_template.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name with or without "#" (e.g. "#general"), or the channel id. 1–80 characters. |
| `template` | string | yes | Template id. 1–80 characters. |
| `parts` | array of string | no | Part keys (left out: the ones on by default). Up to 20 items. |

### `delete_template`

Deletes a template you manage (one saved from a channel or imported; find_templates shows its id), for everyone it was shared with. Channels it was added to keep what it made. Only when the user asked.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `template` | id | yes | Template id. |

### `save_workflow_draft`

Writes a whole workflow (the JSON read_workflow gives, changed) as a draft: a new one without workflowId, or the working copy of one you may change. Says what is still missing. A published workflow keeps running as it was until publish_workflow.

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `workflow` | string | yes | The whole workflow as JSON text: name, trigger, steps… as read_workflow returns it. 2–1,000,000 characters. |
| `workflowId` | id | no | The workflow to change; leave out to create one. |

### `read_file`

Reads a file attached to a message you can read: the text of text files and documents (PDF, Word, spreadsheets, slides), what was said in an audio file, or a picture (shown when your app sees pictures), from any point. Use it for the rest of a long attachment that was cut ("truncated") or for a file from earlier in the conversation. file: the id on the <attachment id="…"> or shown as {file:…}; offset: the character to start from (as the previous call or the cut note says).

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `file` | id | yes | The file’s id ({file:…} or <attachment id="…">). |
| `offset` | integer | no | Character to start from (0: the start). 0–1,000,000,000. |
