> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mastodon MCP Tools

> Model Context Protocol (MCP) tool reference for connected Mastodon accounts.

The Posttu MCP server exposes **38 tools** for interacting directly with connected **Mastodon** channels.

### Requirements & Scopes

* **Connected Channel**: The target Mastodon account must be connected in your workspace. Pass the channel's identifier as the `channelId` parameter.
* **Scope Permissions**:
  * Reads require `mastodon:read` (or `mcp:full`).
  * Mutations require `mastodon:write` (or `mcp:full`).
* **Dual Execution**: Every tool maps 1:1 to Posttu's REST API.

***

## Available Tools (38)

## Account

### `mastodon_account_me`

Get the authenticated Mastodon account

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/account/me`](https://docs.posttu.com/api-reference/mastodon/account/account-me)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_account_me",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset"
    }
  }
}
```

***

### `mastodon_account_update`

Update the Mastodon profile

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/account/update`](https://docs.posttu.com/api-reference/mastodon/account/account-update)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_account_update",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset"
    }
  }
}
```

***

## Users

### `mastodon_users_get`

Get a Mastodon account

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/users/get`](https://docs.posttu.com/api-reference/mastodon/users/users-get)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `userId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_get",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "userId": "userId_example"
    }
  }
}
```

***

### `mastodon_users_statuses`

List Mastodon account statuses

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/users/statuses`](https://docs.posttu.com/api-reference/mastodon/users/users-statuses)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `accountId` | `string` | **Yes** | — |
| `limit` | `number` | No | — |
| `max_id` | `string` | No | — |
| `since_id` | `string` | No | — |
| `min_id` | `string` | No | — |
| `only_media` | `boolean` | No | — |
| `exclude_replies` | `boolean` | No | — |
| `exclude_reblogs` | `boolean` | No | — |
| `pinned` | `boolean` | No | — |
| `tagged` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_statuses",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "accountId": "accountId_example",
      "limit": 10,
      "max_id": "max_id_example",
      "since_id": "since_id_example",
      "min_id": "min_id_example",
      "only_media": false,
      "exclude_replies": false,
      "exclude_reblogs": false,
      "pinned": false,
      "tagged": "example_value"
    }
  }
}
```

***

### `mastodon_users_relationships`

Get Mastodon account relationships

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/users/relationships`](https://docs.posttu.com/api-reference/mastodon/users/users-relationships)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `accountIds` | `array` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_relationships",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "accountIds": [
        "item_1"
      ]
    }
  }
}
```

***

### `mastodon_users_follow`

Follow a Mastodon account

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/users/follow`](https://docs.posttu.com/api-reference/mastodon/users/users-follow)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `targetAccountId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_follow",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "targetAccountId": "targetAccountId_example"
    }
  }
}
```

***

### `mastodon_users_unfollow`

Unfollow a Mastodon account

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/users/unfollow`](https://docs.posttu.com/api-reference/mastodon/users/users-unfollow)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `userId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_unfollow",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "userId": "userId_example"
    }
  }
}
```

***

### `mastodon_users_block`

Block a Mastodon account

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/users/block`](https://docs.posttu.com/api-reference/mastodon/users/users-block)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `userId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_block",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "userId": "userId_example"
    }
  }
}
```

***

### `mastodon_users_unblock`

Unblock a Mastodon account

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/users/unblock`](https://docs.posttu.com/api-reference/mastodon/users/users-unblock)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `userId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_unblock",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "userId": "userId_example"
    }
  }
}
```

***

### `mastodon_users_mute`

Mute a Mastodon account

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/users/mute`](https://docs.posttu.com/api-reference/mastodon/users/users-mute)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `userId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_mute",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "userId": "userId_example"
    }
  }
}
```

***

### `mastodon_users_unmute`

Unmute a Mastodon account

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/users/unmute`](https://docs.posttu.com/api-reference/mastodon/users/users-unmute)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `userId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_users_unmute",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "userId": "userId_example"
    }
  }
}
```

***

## Search

### `mastodon_search`

Search Mastodon accounts, statuses and hashtags

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/search`](https://docs.posttu.com/api-reference/mastodon/search/search)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `q` | `string` | **Yes** | — |
| `type` | `string` | No | — |
| `resolve` | `boolean` | No | — |
| `limit` | `number` | No | — |
| `max_id` | `string` | No | — |
| `min_id` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_search",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "q": "example_value",
      "type": "example_value",
      "resolve": false,
      "limit": 10,
      "max_id": "max_id_example",
      "min_id": "min_id_example"
    }
  }
}
```

***

## Posts

### `mastodon_posts_get`

Get Mastodon statuses

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/posts/get`](https://docs.posttu.com/api-reference/mastodon/posts/posts-get)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `postIds` | `array` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_get",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "postIds": [
        "item_1"
      ]
    }
  }
}
```

***

### `mastodon_posts_list`

List Mastodon statuses

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/posts/list`](https://docs.posttu.com/api-reference/mastodon/posts/posts-list)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_list",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "limit": 10,
      "cursor": "example_value"
    }
  }
}
```

***

### `mastodon_posts_delete`

Delete Mastodon statuses

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/delete`](https://docs.posttu.com/api-reference/mastodon/posts/posts-delete)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `postIds` | `array` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_delete",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "postIds": [
        "item_1"
      ]
    }
  }
}
```

***

### `mastodon_posts_update`

Update a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/update`](https://docs.posttu.com/api-reference/mastodon/posts/posts-update)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |
| `status` | `string` | No | — |
| `media_ids` | `array` | No | — |
| `sensitive` | `boolean` | No | — |
| `spoiler_text` | `string` | No | — |
| `language` | `string` | No | — |
| `poll` | `object` | No | — |
| `poll.options` | `array` | **Yes** | — |
| `poll.expires_in` | `number` | **Yes** | — |
| `poll.multiple` | `boolean` | No | — |
| `poll.hide_totals` | `boolean` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_update",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example",
      "status": "example_value",
      "media_ids": [
        "med_asset_123"
      ],
      "sensitive": false,
      "spoiler_text": "example_value",
      "language": "example_value",
      "poll": {
        "options": [
          {
            "value": "Option A"
          },
          {
            "value": "Option B"
          }
        ],
        "duration": {
          "days": 1,
          "hours": 0,
          "minutes": 0
        }
      }
    }
  }
}
```

***

### `mastodon_posts_like`

Favourite a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/like`](https://docs.posttu.com/api-reference/mastodon/posts/posts-like)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_like",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_unlike`

Unfavourite a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/unlike`](https://docs.posttu.com/api-reference/mastodon/posts/posts-unlike)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_unlike",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_reblog`

Boost a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/reblog`](https://docs.posttu.com/api-reference/mastodon/posts/posts-reblog)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_reblog",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_unreblog`

Unboost a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/unreblog`](https://docs.posttu.com/api-reference/mastodon/posts/posts-unreblog)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_unreblog",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_pin`

Pin a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/pin`](https://docs.posttu.com/api-reference/mastodon/posts/posts-pin)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_pin",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_unpin`

Unpin a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/unpin`](https://docs.posttu.com/api-reference/mastodon/posts/posts-unpin)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_unpin",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_bookmark`

Bookmark a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/bookmark`](https://docs.posttu.com/api-reference/mastodon/posts/posts-bookmark)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_bookmark",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_unbookmark`

Unbookmark a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/unbookmark`](https://docs.posttu.com/api-reference/mastodon/posts/posts-unbookmark)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_unbookmark",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_mute`

Mute a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/mute`](https://docs.posttu.com/api-reference/mastodon/posts/posts-mute)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_mute",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_unmute`

Unmute a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/unmute`](https://docs.posttu.com/api-reference/mastodon/posts/posts-unmute)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_unmute",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

## Polls

### `mastodon_polls_get`

Get a Mastodon poll

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/polls/get`](https://docs.posttu.com/api-reference/mastodon/polls/polls-get)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `pollId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_polls_get",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "pollId": "pollId_example"
    }
  }
}
```

***

### `mastodon_polls_vote`

Vote in a Mastodon poll

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/polls/vote`](https://docs.posttu.com/api-reference/mastodon/polls/polls-vote)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `pollId` | `string` | **Yes** | — |
| `choices` | `array` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_polls_vote",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "pollId": "pollId_example",
      "choices": []
    }
  }
}
```

***

## Comments

### `mastodon_posts_comments_get`

Get a Mastodon comment thread

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/posts/comments/get`](https://docs.posttu.com/api-reference/mastodon/comments/posts-comments-get)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_comments_get",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `mastodon_posts_comments_create`

Reply to a Mastodon status

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/comments/create`](https://docs.posttu.com/api-reference/mastodon/comments/posts-comments-create)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalCommentId` | `string` | No | — |
| `externalPostId` | `string` | No | — |
| `messageData` | `object` | **Yes** | — |
| `messageData.media` | `array` | No | — |
| `messageData.message` | `string` | No | — |
| `messageData.fansly` | `object` | No | — |
| `messageData.fansly.lockedText` | `array` | No | — |
| `messageData.fansly.media` | `array` | No | — |
| `messageData.onlyfans` | `object` | No | — |
| `messageData.onlyfans.price` | `number` | No | — |
| `messageData.onlyfans.lockedText` | `boolean` | No | — |
| `messageData.mastodon` | `object` | No | — |
| `messageData.mastodon.sensitive` | `boolean` | No | — |
| `messageData.mastodon.spoiler_text` | `string` | No | — |
| `messageData.mastodon.visibility` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_comments_create",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalCommentId": "externalCommentId_example",
      "externalPostId": "externalPostId_example",
      "messageData": {
        "media": [],
        "message": "example_value"
      }
    }
  }
}
```

***

### `mastodon_posts_comments_delete`

Delete a Mastodon comment

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/posts/comments/delete`](https://docs.posttu.com/api-reference/mastodon/comments/posts-comments-delete)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `externalCommentId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_posts_comments_delete",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "externalCommentId": "externalCommentId_example"
    }
  }
}
```

***

## Conversations

### `mastodon_conversations`

List Mastodon conversations

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/conversations`](https://docs.posttu.com/api-reference/mastodon/conversations/conversations)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `limit` | `number` | No | — |
| `max_id` | `string` | No | — |
| `since_id` | `string` | No | — |
| `min_id` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_conversations",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "limit": 10,
      "max_id": "max_id_example",
      "since_id": "since_id_example",
      "min_id": "min_id_example"
    }
  }
}
```

***

### `mastodon_conversations_read`

Mark a Mastodon conversation as read

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/conversations/read`](https://docs.posttu.com/api-reference/mastodon/conversations/conversations-read)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `conversationId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_conversations_read",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "conversationId": "conversationId_example"
    }
  }
}
```

***

### `mastodon_conversations_delete`

Delete a Mastodon conversation

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/conversations/delete`](https://docs.posttu.com/api-reference/mastodon/conversations/conversations-delete)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `conversationId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_conversations_delete",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "conversationId": "conversationId_example"
    }
  }
}
```

***

### `mastodon_conversations_find_by_status`

Find the conversation related to a status

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/conversations/find-by-status`](https://docs.posttu.com/api-reference/mastodon/conversations/conversations-find-by-status)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `statusId` | `string` | **Yes** | — |
| `senderAccountId` | `string` | **Yes** | — |
| `inReplyToId` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_conversations_find_by_status",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "statusId": "statusId_example",
      "senderAccountId": "senderAccountId_example",
      "inReplyToId": "inReplyToId_example"
    }
  }
}
```

***

### `mastodon_conversations_message_send`

Send a Mastodon direct message

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/conversations/message/send`](https://docs.posttu.com/api-reference/mastodon/conversations/conversations-message-send)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `chatId` | `string` | **Yes** | — |
| `messageData` | `object` | **Yes** | — |
| `messageData.fansly` | `object` | No | — |
| `messageData.fansly.lockedText` | `array` | No | — |
| `messageData.fansly.media` | `array` | No | — |
| `messageData.onlyfans` | `object` | No | — |
| `messageData.onlyfans.lockedText` | `boolean` | No | — |
| `messageData.price` | `number` | No | — |
| `messageData.message` | `string` | No | — |
| `messageData.media` | `array` | No | — |
| `messageData.mediaPreviewIds` | `array` | No | — |
| `messageData.scheduledFor` | `any` | No | — |
| `messageData.replyTo` | `string` | No | — |
| `messageData.meta` | `object` | No | — |
| `messageData.meta.messagingType` | `string` | No | — |
| `messageData.meta.messageTag` | `string` | No | — |
| `messageData.meta.commentId` | `string` | No | — |
| `messageData.meta.comment_id` | `string` | No | — |
| `messageData.meta.postId` | `string` | No | — |
| `messageData.meta.post_id` | `string` | No | — |
| `idempotencyKey` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_conversations_message_send",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "chatId": "chatId_example",
      "messageData": {
        "price": 10,
        "message": "example_value",
        "media": [],
        "mediaPreviewIds": [
          "med_asset_123"
        ],
        "scheduledFor": "value",
        "replyTo": "example_value"
      },
      "idempotencyKey": "idempotencyKey_example"
    }
  }
}
```

***

## Media

### `mastodon_media_get`

Get a Mastodon media attachment

* **Scope**: `mastodon:read`
* **REST Route**: [`POST /api/v1/mastodon/media/get`](https://docs.posttu.com/api-reference/mastodon/media/media-get)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `mediaId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_media_get",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "mediaId": "mediaId_example"
    }
  }
}
```

***

### `mastodon_media_update`

Update a Mastodon media attachment

* **Scope**: `mastodon:write`
* **REST Route**: [`POST /api/v1/mastodon/media/update`](https://docs.posttu.com/api-reference/mastodon/media/media-update)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `instanceUrl` | `string` | No | — |
| `mediaId` | `string` | **Yes** | — |
| `description` | `string` | No | — |
| `focus` | `any` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mastodon_media_update",
    "arguments": {
      "channelId": "chn_live_12345",
      "instanceUrl": "https://example.com/asset",
      "mediaId": "mediaId_example",
      "description": "example_value",
      "focus": "value"
    }
  }
}
```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.