CommunicationDocumentedScanned

tootbot

Publish content to Mastodon.

Share:

Installation

npx clawhub@latest install tootbot

View the full skill documentation and source below.

Documentation

Mastodon Publisher

Publish content to Mastodon. Use when you need to share updates, posts, or media.

Usage

Post one or more statuses to Mastodon

Post a new status to Mastodon with Bun:

bun {baseDir}/scripts/tootbot.js '{"status": "Hello, Mastodon!"}' '{"status": "Goodby, Mastodon!"}'

JSON fields

NameDescriptionTypeExampleRequiredDefault
statusThe text content of the statusstring"Hello, World"yes^1N/A
visibilitySets the visibility of the posted statuspublic or private or unlisted or direct"private"no"public"
languageISO 639-1 language code for this statusISO-639-1 Language Code"en"no
scheduledAtDatetime at which to schedule a statusRFC3339 date time"2029-02-03T15:30:45.000Z"no
quoteApprovalPolicySets who is allowed to quote the statuspublic or followrs or nobody"nobody"no"public
mediaMedia to be attached to the statusarray of {file, description} objects{"file": "/path/to/foo.png", "description" : "Foo"}no^2
  • ^1 status can be ommitted when one or --media-path parameters are present
  • ^2 one or media objects must be present if status is ommitted
  • ^2 media.description is optional
Environment Variables
NameDescriptionExample
| MASTODON_URL | Your Mastodon instance URL | | | MASTODON_ACCESS_TOKEN | Your Mastodon access token | xAyBzC | ## Examples - **Post a new status** __CODE_BLOCK_1__ Read the output and summarize it for the user. - **Post a scheduled status** __CODE_BLOCK_2__ Read the output and summarize it for the user. - **Post a scheduled status with visibility, language, quote approval policy, and a single media attachment** __CODE_BLOCK_3__ Read the output and summarize it for the user. - **Post a new status with media multiple attachments** __CODE_BLOCK_4__ - **Post a new status with media attachments and no status text** __CODE_BLOCK_5__ ## Notes - Requires bun` to be installed and available in the PATH.