18 tools. Arguments below are exactly what tools/list returns.
sprkly_add_media_from_urlWriteIdempotent
Download an image or video from a public link into sprkly and get a media_id back, for reuse across several posts. You usually do NOT need this: sprkly_schedule_post accepts a link directly in media_urls and pulls it into storage itself whenever the target platform requires that. Reach for this tool only when the user wants one media_id to attach to more than one post. Google Drive and Dropbox share links are converted automatically; the file must be shared publicly. Limit 50 MB.
| Argument | Type | Description |
|---|
| urlrequired | string | Direct https link to the image or video file. Must be publicly reachable. |
You say“Use this clip for all three of this week posts: https://cdn.example.com/clips/launch.mp4”
The agent calls
sprkly_add_media_from_url({
"url": "https://cdn.example.com/clips/launch.mp4"
})Returns a mediaId you can attach to several posts. For a SINGLE post do not call this at all: put the link straight into media_urls on sprkly_schedule_post and it is pulled into storage there.
sprkly_delete_scheduled_postWriteDestructiveIdempotent
Remove a post from the queue. This is a soft delete. The user can restore it from the Deleted tab for 30 days. Posts that have already published cannot be deleted this way. Always confirm with the user before calling.
| Argument | Type | Description |
|---|
| post_idrequired | string | The scheduled post id to delete. |
You say“Scrap the Tuesday post, it's out of date now.”
The agent calls
sprkly_delete_scheduled_post({
"post_id": "post_abc123"
})Soft delete: restorable from the Deleted tab for 30 days. Agents confirm with the user before calling.
sprkly_draft_postWrite
Compose a caption from a content hint and save it as a draft in sprkly, shaped to the tightest caption limit among the target platforms. Returns a draft id; the draft appears under /drafts for the user to review.
| Argument | Type | Description |
|---|
| content_hintrequired | string | What the post should be about: a topic, phrase, or key message. |
| platforms | string[] | Intended platforms, used to pick the caption length ceiling. |
| tone | string | Voice for the draft.casual · professional · promotional |
| name | string | Optional label for the draft. |
| profile_ids | string[] | Optional accounts to pre-select on the draft. From sprkly_list_profiles. |
You say“Draft something warm about the new studio space for Instagram.”
The agent calls
sprkly_draft_post({
"content_hint": "first look at the new studio space",
"platforms": [
"instagram"
],
"tone": "casual"
})sprkly_export_automation_templateRead-only
Download one Instagram auto reply as a shareable template. The file holds the trigger, the keyword and the message, and never a post id, a profile id or any account details, so it is safe to send to someone else. An auto reply that is still a draft has nothing published to export.
| Argument | Type | Description |
|---|
| automation_idrequired | string | The automation id to export. |
You say“Send me my GUIDE auto reply so I can reuse it on another account.”
The agent calls
sprkly_export_automation_template({
"automation_id": "flow_abc123"
})sprkly_get_account_summaryRead-only
Plan tier, trial state, connected account count, scheduled post counts by status, and the next three upcoming posts. Never returns tokens or secrets.
No arguments.
You say“How is my sprkly account looking?”
The agent calls
sprkly_get_account_summary({})sprkly_get_analyticsRead-only
How the user's published posts actually performed: total views and engagement, week-on-week / month-on-month / year-on-year change, their best posting hour, weekday and content category, and the top posts behind those numbers. Every recommendation carries a `samples` count — say how thin the evidence is rather than presenting a one-post pattern as a finding. Every period-on-period percentage carries the post counts and raw totals it came from: quote those, because a big percentage off a tiny base is not a big change. `topPosts` is grouped by platform and ranked only inside each group; `relativeToPlatformBest` compares a post with others on its OWN platform and never across platforms, so use the absolute `value` and its `metric` label to weigh one platform against another. Instagram contributes likes and comments only, and Threads and Facebook produce no metrics at all, so read `coverage` before comparing platforms.
| Argument | Type | Description |
|---|
| days | integer (1 to 365) | How many days back to analyse. Default 30. |
| profile_ids | string[] | Limit to these accounts. Omit for every account this connection can see. |
You say“How did my posts do last month, and when should I be posting?”
The agent calls
sprkly_get_analytics({
"days": 30
})Returns the numbers and the evidence behind them. The advice is yours to give: check `samples` and `coverage` before calling anything a pattern.
You say“Which of my TikTok posts worked best this week?”
The agent calls
sprkly_get_analytics({
"days": 7,
"profile_ids": [
"prof_tiktok_main"
]
})sprkly_get_billing_summaryRead-only
Subscription status, current plan, period end, purchased handles and the last few billing events. No payment method details; the Stripe customer id is truncated.
No arguments.
You say“What plan am I on and when does it renew?”
The agent calls
sprkly_get_billing_summary({})sprkly_get_post_approval_statusRead-only
Whether a post is awaiting human review, approved or rejected, including reviewer notes and timestamps.
| Argument | Type | Description |
|---|
| post_idrequired | string | The scheduled post id. |
You say“Has the launch post been approved yet?”
The agent calls
sprkly_get_post_approval_status({
"post_id": "post_abc123"
})sprkly_get_post_statusRead-only
Full detail for one post: status, targets, scheduled and published times, permalink, and the failure reason if it did not publish. Media comes back as mediaIds in slide order, not as links. Ids and profile ids are plumbing: talk to the user about accounts by handle and about posts by their caption, and do not read ids out unless they ask for one.
| Argument | Type | Description |
|---|
| post_idrequired | string | The scheduled post id. |
You say“Did last night's reel actually go out?”
The agent calls
sprkly_get_post_status({
"post_id": "post_abc123"
})sprkly_get_tiktok_posting_optionsRead-only
This creator's allowed TikTok privacy levels and interaction settings, fetched live from TikTok. You usually do NOT need this before scheduling: sprkly_schedule_post checks privacyLevel against this same list itself and, when it is wrong, returns the levels that would work. Call this only when the user asks what their options are, or you want to offer them a choice.
| Argument | Type | Description |
|---|
| profile_idrequired | string | The TikTok profile id to query, from sprkly_list_profiles. |
You say“What privacy options do I have on TikTok?”
The agent calls
sprkly_get_tiktok_posting_options({
"profile_id": "prof_tt_studio"
})For showing the user their choices. Do NOT run it before sprkly_schedule_post as a matter of course: that call validates privacyLevel itself and names the allowed levels when one is wrong.
sprkly_import_automation_templateWrite
Read an auto reply template, and optionally set it up. With no profile_id NOTHING is written: the template is checked and handed back, which is the safe first call. With a profile_id the automation is created, and it goes live when the trigger can be satisfied. A keyword or every-comment trigger needs post_id as well; without one it saves as a draft that sends nothing until a post is chosen.
| Argument | Type | Description |
|---|
| templaterequired | object | The template, as an object or as the file text. |
| profile_id | string | The Instagram account to set it up on. Leave this out to only check the template. |
| post_id | string | The published post to watch. Needed for a keyword or every-comment trigger. |
You say“Check this template someone sent me.”
The agent calls
sprkly_import_automation_template({
"template": {
"sprklyTemplate": 1,
"name": "GUIDE reply"
}
})No profile_id, so nothing is created. Read it first, then import it for real.
sprkly_list_connected_social_accountsRead-only
Every ACTIVE social account linked to this sprkly account: platform, handle, follower count, and whether it needs reconnecting. Disconnected/inactive accounts are never listed, so any profileId returned here is a valid posting target. Never returns access tokens.
No arguments.
You say“Which social accounts do I have connected?”
The agent calls
sprkly_list_connected_social_accounts({})sprkly_list_profilesRead-only
The profile ids needed to target a post, with each one's platform and handle. Call this before sprkly_schedule_post.
No arguments.
You say“Where can you post for me?”
The agent calls
sprkly_list_profiles({})Agents call this first: the profile ids it returns are what sprkly_schedule_post targets.
sprkly_list_scheduled_postsRead-only
The post queue, newest first, with a caption preview, targets, status and failure reason. Supports a status filter and cursor pagination.
| Argument | Type | Description |
|---|
| status | string | Filter by status.draft · pending_approval · scheduled · posted · failed |
| limit | integer (1 to 50) | Maximum posts to return. |
| cursor | string | Pagination cursor. Pass the nextCursor value from a previous response. |
You say“What have I got queued this week?”
The agent calls
sprkly_list_scheduled_posts({
"status": "scheduled",
"limit": 20
})sprkly_request_post_approvalWrite
Submit a draft post for human review. Moves the post to pending_approval and returns an approval id to poll with sprkly_get_post_approval_status. Use this when the user wants a person to sign off before anything publishes.
| Argument | Type | Description |
|---|
| post_idrequired | string | The draft post id to submit. |
| note | string | Optional context for the reviewer. |
You say“Queue the week, but let me sign off before anything goes out.”
The agent calls
sprkly_request_post_approval({
"post_id": "post_abc123",
"note": "Captions drafted from the Tuesday shoot. Check the TikTok hook."
})sprkly_schedule_postWrite
Queue a post for publishing, in ONE call. Attach media by passing the user's link straight to media_urls: sprkly downloads it into storage itself for the platforms that need that, so no upload tool has to run first. Runs the same quota, duplicate-content and platform pre-flight checks as the sprkly app. Instagram and TikTok require media at submission time; YouTube and TikTok require a title, and TikTok also requires platform_meta.tiktok.privacyLevel — just send the level the user asked for and this tool names the allowed values if it is not one of them. It reads the real bytes of the media and the response says what will actually publish on each platform (a Reel, a 3-slide carousel, a photo set, a Page feed video) plus anything worth passing on: relay that to the user. Confirm the date, time and target accounts with the user first. If a target platform has more than one connected account and profile_ids is not given, the tool returns needsAccountChoice with the options instead of scheduling — put that choice to the user, then re-call.
| Argument | Type | Description |
|---|
| caption | string | Post caption, max 2200 characters. |
| platforms | string[] | Platforms to publish to. A platform with exactly one connected account is targeted directly; one with several makes the tool answer needsAccountChoice so the user can pick. |
| profile_ids | string[] | Specific accounts to publish to, from sprkly_list_profiles. When given, this list IS the target set — platforms are not fanned out. |
| all_accounts | boolean | Explicitly post to EVERY connected account on every listed platform, skipping the needsAccountChoice question. Only pass true when the user has said they want all accounts. |
| scheduled_time | string | ISO 8601 timestamp to publish at. Must be in the future. If omitted the post goes out on the next publisher run, about a minute from now — there is no smart slot-picking, so pass an explicit time unless the user wants it published immediately. sprkly_get_analytics can suggest one. |
| media_urls | string[] | Publicly reachable image or video URLs to attach, in slide order. Pass links through for ANY platform. Instagram and Threads fetch them directly; for TikTok, YouTube and Facebook sprkly downloads the file into its own storage while scheduling, so a link works there too and any problem with it is reported now, in this call. Google Drive and Dropbox share links are converted automatically. JPEG, PNG, WebP, GIF, MP4, MOV and WebM only: AVIF and HEIC (the iPhone camera default) are refused with re-export instructions, because sprkly cannot convert them. Each file must be publicly reachable and under 50 MB. |
| media_id | string | Id of a single media file already uploaded to sprkly. Shorthand for a one-item media_ids. |
| media_ids | string[] | Ids of media files already uploaded to sprkly, in slide order. Array order is the published order. Use these when the user already has media in sprkly, or when one file is going on several posts; for a link the user just gave you, media_urls is fewer steps. Every photo in a set must be the SAME shape or the call is refused: export them all at 1080x1920 (9:16), 1080x1440 (3:4), 1080x1350 (4:5) or 1080x1080 (1:1). Instagram takes at most 10 slides; TikTok photo sets take up to 35. |
| title | string | Post title. Required for YouTube (max 100 characters) and TikTok (max 150 characters). |
| category | string | Optional content category, e.g. "fitness". |
| platform_meta | object | Platform-specific publishing options, keyed by platform. |
You say“Schedule this to Instagram and TikTok on Thursday at 6pm.”
The agent calls
sprkly_schedule_post({
"caption": "Behind the scenes of the studio setup",
"platforms": [
"instagram",
"tiktok"
],
"scheduled_time": "2026-08-13T18:00:00+08:00",
"media_id": "media_abc123",
"title": "Behind the scenes of the studio setup",
"platform_meta": {
"tiktok": {
"privacyLevel": "PUBLIC_TO_EVERYONE"
}
}
})With two Instagram accounts connected, this returns needsAccountChoice and the agent asks: "You have 2 Instagram accounts, which one?" Then it re-calls with profile_ids. TikTok posts need a title and a privacyLevel from sprkly_get_tiktok_posting_options.
You say“Yes, the studio account. Same for TikTok.”
The agent calls
sprkly_schedule_post({
"caption": "Behind the scenes of the studio setup",
"platforms": [
"instagram",
"tiktok"
],
"profile_ids": [
"prof_ig_studio",
"prof_tt_studio"
],
"scheduled_time": "2026-08-13T18:00:00+08:00",
"media_id": "media_abc123",
"title": "Behind the scenes of the studio setup",
"platform_meta": {
"tiktok": {
"privacyLevel": "PUBLIC_TO_EVERYONE"
}
}
})You say“Post these five cards as a carousel to Instagram and TikTok.”
The agent calls
sprkly_schedule_post({
"caption": "Five things nobody tells you about scheduling",
"platforms": [
"instagram",
"tiktok"
],
"scheduled_time": "2026-08-14T09:00:00+08:00",
"media_ids": [
"media_c1",
"media_c2",
"media_c3",
"media_c4",
"media_c5"
],
"title": "Five things nobody tells you about scheduling",
"platform_meta": {
"tiktok": {
"privacyLevel": "PUBLIC_TO_EVERYONE"
}
}
})media_ids order is slide order, and the ids come from media already in sprkly. Had the user pasted five links instead, media_urls takes them in the same order and sprkly pulls each one in while scheduling.
You say“Post this to TikTok tomorrow at 9am, just to me for now: https://drive.google.com/file/d/1AbCdEf/view?usp=sharing”
The agent calls
sprkly_schedule_post({
"caption": "Testing the new scheduler",
"platforms": [
"tiktok"
],
"scheduled_time": "2026-08-16T09:00:00+08:00",
"media_urls": [
"https://drive.google.com/file/d/1AbCdEf/view?usp=sharing"
],
"title": "Testing the new scheduler",
"platform_meta": {
"tiktok": {
"privacyLevel": "SELF_ONLY"
}
}
})One call. The Drive share link is converted to its download form and pulled into sprkly storage during this call, so a broken or private link is reported here rather than failing quietly at publish time. Do not call an upload tool first, and do not look the privacy level up first.
sprkly_update_scheduled_postWriteIdempotent
Change the caption, publish time, target accounts or attached media on a post that has not published yet. Only posts with status "scheduled" can be edited.
| Argument | Type | Description |
|---|
| post_idrequired | string | The scheduled post id. |
| caption | string | Replacement caption, max 2200 characters. |
| scheduled_time | string | New ISO 8601 publish time. Must be in the future. |
| profile_ids | string[] | Replacement target accounts. Platforms are re-derived from them. |
| media_id | string | Replacement sprkly media file id. Shorthand for a one-item media_ids. |
| media_ids | string[] | Replacement media, in slide order. Replaces the whole set, it does not append — pass every slide you want the post to keep. |
You say“Move Friday's post to Saturday morning instead.”
The agent calls
sprkly_update_scheduled_post({
"post_id": "post_abc123",
"scheduled_time": "2026-08-15T09:00:00+08:00"
})sprkly_validate_post_policyRead-only
Check a caption against each target platform's posting rules before scheduling: caption length, media requirements, hashtag ceilings, whether links are clickable, required YouTube titles, and PII or prohibited-content warnings. Pure analysis. Writes nothing.
| Argument | Type | Description |
|---|
| captionrequired | string | The caption to check. |
| platformsrequired | string[] | Target platforms to check against. |
| mediaUrlsCount | integer (0 to -) | How many images or videos will be attached. Instagram and TikTok require at least one. |
| hashtags | string[] | Hashtags posted alongside the caption, if they are not already in it. |
| title | string | Post title. Required for YouTube, max 100 characters. |
| platformMeta | object | Platform-specific publishing options, keyed by platform. |
You say“Check this caption against TikTok's rules first.”
The agent calls
sprkly_validate_post_policy({
"caption": "Three edits that doubled watch time. Full breakdown in the comments.",
"platforms": [
"tiktok"
],
"mediaUrlsCount": 1
})Run this before scheduling: it catches a too-long caption, missing media or a missing YouTube title while they are still cheap to fix.