Hosted remote MCP
MCP tools
Every tool the Swipe Pilot MCP server gives your agent, with its arguments and an answer it sends back. To connect an agent first, see MCP for agents.
All tools
| Tool | Purpose | Access |
|---|---|---|
| list_iphones | The workspace's iPhones, each with its setup readiness, screen, languages, commands, accounts, and next suggested NATO phonetic names. | Read |
| configure_iphone | Renames an iPhone (or automatically assigns NATO phonetic names like Alpha, Bravo, Charlie with auto_name) and updates its language, exit country, task gap, vc_during_runs, commands, or paused state. | Write |
| setup_iphone | End-to-end iPhone setup: check readiness (status), generate a pairing code and QR URL (pair), reassign a companion (assign), send or confirm the first Voice Control script (send_first_script / confirm_first_script), or install the TikTok pack (install_pack). | Write |
| install_shortcuts | Installs the VC ON, VC OFF and VC RESTART Shortcuts on an iPhone via automated installer scripts (once bootstrap is confirmed) or by opening their install links directly on the companion. | Write |
| upload_media | Stores one photo or video and returns its id. Give url or data_base64. | Write |
| list_media | The photos and videos already in the workspace, newest first. | Read |
| queue_post | Queues a post on one iPhone: its media in slide order, its caption, now or at a given time. Name the iPhone, or only the account: its iPhone is found for you. | Write |
| list_queue | The 50 latest tasks, newest first, posts and scripts alike, each with its state. | Read |
| cancel_task | Takes a task out of the queue. Cancelling a script's import also cancels the run that follows it; a task already running is stopped with force. | Write |
| list_scripts | The workspace's scripts, and the scripts installed on each iPhone with the command that runs them. Posts are not scripts: they go through queue_post. | Read |
| run_script | Runs a script on one iPhone, now or at a given time. A script installed there runs under its command. A script of the workspace that is not installed is imported first, then run. | Write |
| install_scripts | Installs several scripts on one iPhone in one file, so one import to confirm instead of one per script. | Write |
| reinstall_iphone | Reinstalls everything on one iPhone, like Reinstall on the iPhones page: purge, then one file with the installed scripts and, by default, the import script. | Write |
| script_blocks | How to write a script: the shape of a block and, for each block kind, what it does when the iPhone plays it, its fields and an example. Read it before create_script or update_script. | Read |
| list_zones | The names a touch block can aim at on each iPhone: the zones of the Screens & zones pack that fits its screen, grouped by screen, and the zones built into the companion. | Read |
| get_script | Reads a script: its blocks as saved, its revision, and the iPhones it is installed on with whether each copy is up to date. | Read |
| create_script | Creates a script from blocks, checked by the same rules as the script editor: 1,000 blocks, 16 levels of nesting, valid zones and durations. Names are unique in a workspace. | Write |
| update_script | Changes a script's blocks (replaced as a whole), name or note. Setup and post scripts cannot be changed here. | Write |
| delete_script | Deletes a script from the workspace. Copies already installed on iPhones stay there until reinstall_iphone runs. | Write |
| screenshot | The iPhone's screen now: the image, the text read on it with each line's rectangle in fractions of the screen, and a capture id for find_zones and check_screen. | Read |
| find_zones | The vision model finds touch zones on the screen from plain words. A button with words on it (« Not now », « Post ») is placed where the Mac read those words, exactly; an icon keeps the model's box. With screen, the zones are saved in the iPhone's Screens & zones pack. | Write |
| name_zones | Turns the labels Voice Control draws with « Show names » into touch zones, without the vision model: how to build a routine from scratch on a screen that has no zones yet. | Write |
| check_screen | Decides from the screen between two steps of a run: answers a question with the vision model, checks that some text is shown, and says whether the screen changed since an earlier capture. | Read |
| keyboard | Types text or presses a key with the Mac as the iPhone's Bluetooth keyboard (paired once from the Mac app). With Full Keyboard Access on, tab and the arrows move the focus, space presses, and the Tab commands work (back, actions, find…). Outside TikTok and Instagram only: apps can see a keyboard is connected. | Write |
| connect_esp32 | Pairs an iPhone with the ESP32 bridge plugged into the Mac over USB: the Mac gives the board its key and opens pairing, then saves the link on the site as soon as the iPhone pairs. Only one tap is left to a person: the bridge's name in the iPhone's Settings › Bluetooth. | Write |
| install_tap_grid | Installs the tap grid on an iPhone once: about 300 Voice Control commands, each one human tap on a small area of the screen, denser at the top, the middle and the tab bar. Imported like a script bundle. | Write |
| tap_at | Taps a point of the screen at once with a real finger's Voice Control gesture: the nearest grid area's command is said. Safe inside TikTok and Instagram: close a popup, switch tabs, open the account picker. | Write |
| say_command | Says one Voice Control command at once, outside the task cycle: a built-in one (« Open TikTok », « Go home », « Show names », « Tap General ») or one installed on the iPhone. | Write |
| remember | Keeps what the agent learnt (where a button is, which popup shows and how to close it, steps that worked), one note per topic, for its next runs. | Write |
| recall | Reads the agent's notes: every topic, or those containing a word. | Read |
| await_task | Waits until a task ends, up to 55 seconds, and returns its state: the step before a check_screen. | Read |
| list_routines | The workspace's routines, soonest first: what each one runs, on which iPhone, its next run, how often, its window, and whether it is paused. | Read |
| create_routine | Creates a routine: a post or a script on one iPhone, from first_at, then every every_hours. Give media_ids for a post, or script for a script. | Write |
| update_routine | Changes a routine. Only the arguments given change: pause or resume it, move its next run, change how often it runs, its window, its iPhone or what it runs. | Write |
| delete_routine | Deletes a routine. | Write |
| set_voice_mode | Chooses who says the Voice Control commands for the iPhones: a browser console, or an available iPhone. | Write |
| switch_account | Opens an account of an iPhone, as the Switch button of the iPhones page does. | Write |
| list_niches | Every niche with its accounts and keywords, and the accounts that have no niche yet. | Read |
| set_account_niche | Puts an account in a niche, or takes it out of its niche. | Write |
| set_niche_keywords | Replaces the keywords of a niche. | Write |
| daily_summary | What each iPhone did over the last hours: posts confirmed, per account, script runs, failures, tasks to check, and iPhones gone quiet. | Read |
Times are given in ISO 8601 and come back in Unix seconds. iPhones are named by their name or their id, accounts by their handle.
iPhones
Which iPhones the workspace has, how to set them up, name/configure them, and install Voice Control shortcuts.
list_iphones
ReadArguments
None.
Answer
{
"iphones": [
{
"id": "BDCE218C-953F-4976-9E41-61FE9DB13FBA",
"name": "Alpha",
"online": true,
"paused": false,
"bootstrapConfirmed": true,
"canPost": true,
"voiceLocale": "en-US",
"phoneLanguage": "en-US",
"screen": { "width": 393, "height": 852, "scale": 3 },
"model": "iPhone15,4",
"importCommand": "Alpha voice control import",
"postCommand": "Alpha post 0",
"taskGapMinutes": 0,
"exitCountry": "US",
"lastExit": { "country": "US", "ok": true, "at": 1792590000 },
"accounts": [{ "platform": "tiktok", "handle": "@mybrand" }]
}
],
"suggestedNames": ["Bravo", "Charlie", "Delta", "Echo", "Foxtrot", "Golf"]
}online: the companion checked in during the last two minutes. canPost: the iPhone finished its bootstrap setup and has its post command.
exitCountry: the country its traffic must leave from before a task starts, null when it is not checked. suggestedNames: unused phonetic names ready for configure_iphone.
configure_iphone
WriteArguments
iphonestring- The iPhone's name or id. Optional when auto_name is true to rename all unnamed iPhones.
namestring- A distinct new name for the iPhone (such as Alpha or Bravo).
auto_nameboolean- Assign the next unused NATO phonetic name(s) automatically.
voice_localestring- Voice Control language locale (en-US, fr-FR, de-DE…).
phone_languagestring- iOS Settings interface language (en-US, fr-FR…), or empty to reset.
exit_countrystring- 2-letter exit country (e.g. US), « off », or empty to follow language.
task_gap_minutesnumber- Minimum minutes between tasks on this iPhone (0–240).
vc_during_runsboolean- Turn Voice Control on before each run and off after via VC ON / VC OFF.
pausedboolean- Pause or resume the iPhone's queue.
Answer
{ "ok": true, "iphone": { "id": "BDCE218C-…", "previousName": "iPhone", "name": "Alpha", "voiceLocale": "en-US" } }setup_iphone
WriteArguments
actionstring- status (default), pair, assign, send_first_script, confirm_first_script or install_pack.
iphonestring- The iPhone's name or id (optional for status and pair).
target_iphonestring- For assign: existing iPhone to keep.
kind"phone" | "studio"- For pair: phone (default) or studio (Mac app).
keystring- An idempotency key. Sending the same key again never queues a second task: the answer then holds the first task's id and replayed: true. A new one is made when left out.
Answer
{ "ok": true, "code": "ABCD-2345", "kind": "phone", "pairUrl": "https://swipepilot.app/pair?code=ABCD-2345" }install_shortcuts
WriteArguments
iphonestringrequired- The iPhone's name or id.
shortcutsstring[]- Any of on, off, restart. Default: ["on", "off"].
mode"script" | "open"- script uses automated Voice Control scripts for on/off; open sends the install link directly to the companion.
runboolean- In script mode, also run the installer scripts immediately after import (true by default).
keystring- An idempotency key. Sending the same key again never queues a second task: the answer then holds the first task's id and replayed: true. A new one is made when left out.
Answer
{ "ok": true, "iphone": "Alpha", "modeUsed": "script", "links": { "on": "https://www.icloud.com/shortcuts/…", "off": "https://www.icloud.com/shortcuts/…", "restart": "https://swipepilot.app/shortcuts/VC%20RESTART.shortcut" } }Media
The photos and videos a post carries. Upload them once, then use their ids in as many posts and routines as you like.
upload_media
WriteArguments
urlstring- A public https address of the file. Swipe Pilot downloads it.
data_base64string- The file itself in base64, for small files.
namestring- The file name, such as slide-1.jpg. Taken from the address when left out.
mimestring- image/jpeg, image/png, image/webp, image/heic, video/mp4 or video/quicktime. Guessed from the address or the name when left out.
Answer
{ "id": "6A4B4B3E-148E-4B82-8CF7-19D6EFE37B71", "name": "slide-1.jpg", "kind": "photo", "size": 482113 }50 MB at most per file, within your plan's storage. For large files on your computer, upload with the REST API instead: the agent sends no base64 through the conversation.
list_media
ReadArguments
kind"photo" | "video"- Only photos, or only videos.
namestring- Only files whose name contains this.
limitnumber- How many, 1 to 100. 50 by default.
Answer
{
"media": [
{ "id": "6A4B4B3E-148E-4B82-8CF7-19D6EFE37B71", "name": "slide-1.jpg", "kind": "photo", "mime": "image/jpeg", "size": 482113, "uploadedAt": 1792010642 }
]
}Posts and the queue
Each post is a task in an iPhone's queue. The iPhone runs its tasks one at a time, at their time or as soon as it is free.
queue_post
WriteArguments
media_idsstring[]required- 1 to 12 media ids, in the order they are posted.
iphonestring- The iPhone's name or id. Optional when account is given.
accountstring- The account the post is for, such as @mybrand. It must be on the iPhone named.
captionstring- The caption.
titlestring- The title, for platforms that have one.
delete_afterboolean- True by default: the media leave the server once the iPhone confirms the post. False keeps them in the media library.
atstring- When, in ISO 8601 with a time zone, such as
2026-10-20T09:30:00+02:00. Left out: as soon as the iPhone is free. A time already past means now. keystring- An idempotency key. Sending the same key again never queues a second task: the answer then holds the first task's id and replayed: true. A new one is made when left out.
Answer
{ "ok": true, "id": "AD02A1E6-8B8A-43A5-A1A6-4754FF268541", "runID": null, "iphone": "Alpha", "account": "@mybrand", "scheduledAt": 1792593423, "mediaRemovedAfterPost": 2 }Refused when the iPhone has not finished its setup, is paused, or already holds 100 tasks. Once a post is confirmed posted, its media are removed from the server, except the ones a routine posts again.
list_queue
ReadArguments
iphonestring- Only this iPhone, by its name or its id.
Answer
{
"tasks": [
{ "id": "AD02A1E6-8B8A-43A5-A1A6-4754FF268541", "name": "Three things nobody tells you about…", "iphone": "Alpha", "account": "@mybrand", "files": 2, "state": "scheduled", "at": 1792593423, "completedAt": null }
]
}state is one of: scheduled, waiting for the iPhone, running, to check on the iPhone, end confirmed · cleaning up, posted · end confirmed by the iPhone (done · … for a script), failed, cancelled.
at is when the task is due; completedAt, when the iPhone confirmed its end.
cancel_task
WriteArguments
idstringrequired- The task's id, from queue_post, run_script or list_queue.
forceboolean- Also stop a task that is already running. False by default.
Answer
{ "ok": true, "id": "AD02A1E6-8B8A-43A5-A1A6-4754FF268541" }Without force, a task already running is not stopped and the answer says so. With force, the queue drops it and the iPhone is told it is no longer authorized; a command it already received may finish its current step, so look at the iPhone afterwards. A script run is two tasks (its import and its run): cancel the run.
Scripts
Scripts are made in Swipe Pilot's script editor: scrolling, liking, warming an account up. Each iPhone runs the ones installed on it, each under its own Voice Control command.
list_scripts
ReadArguments
iphonestring- Only this iPhone, by its name or its id.
Answer
{
"scripts": [
{
"id": "30672697-2531-45B6-8EA4-A4BDA60433CF",
"name": "Morning scroll",
"updatedAt": 1792044733,
"installedOn": [{ "iphone": "Alpha", "command": "Alpha script 0", "upToDate": true }]
},
{ "id": "F3A76695-E78F-4701-A949-D7099BA0EC7A", "name": "Like five videos", "updatedAt": 1791989622, "installedOn": [] }
],
"installed": [
{
"iphone": "Alpha",
"scripts": [{ "id": "DB1DC609-D6CB-4807-B1CB-298CE0E1B477", "command": "Alpha script 0", "name": "Morning scroll", "ready": true }]
}
]
}upToDate is false once the script was edited after it was installed: run it with reinstall to send the new version. ready is false while its import has not been confirmed.
run_script
WriteArguments
iphonestringrequired- The iPhone's name or id.
scriptstringrequired- The script's name or id in the workspace, or the command it is installed under on this iPhone.
atstring- When, in ISO 8601 with a time zone, such as
2026-10-20T09:30:00+02:00. Left out: as soon as the iPhone is free. A time already past means now. reinstallboolean- Import the script again, under the same command, though it is installed: after it was edited. False by default.
keystring- An idempotency key. Sending the same key again never queues a second task: the answer then holds the first task's id and replayed: true. A new one is made when left out.
Answer
{
"ok": true,
"id": "13AE5878-382B-4149-9F93-547DAA0579A7",
"runID": "971BB978-BAF6-44F8-AEEB-CFABA939C946",
"iphone": "Alpha",
"script": "Like five videos",
"command": "Alpha script 1",
"imported": true,
"scheduledAt": 1792593380
}An import is two tasks: id installs the script, runID runs it once the import is done. A script already installed is one task, and runID is null.
The import opens Settings on the iPhone and lays the script out with the latest Screens & zones pack made for its screen. It needs the iPhone's import command, and takes the next free command: Alpha script 0, Alpha script 1…
install_scripts
WriteArguments
iphonestringrequired- The iPhone's name or id.
scriptsstring[]required- Up to 30 scripts, by name or id.
reinstallboolean- Import again the ones already installed. False by default.
keystring- An idempotency key: the same key never queues the install twice.
Answer
{ "ok": true, "iphone": "Delta", "installed": [{ "script": "Warm-up 1", "command": "Delta script 2" }], "alreadyInstalled": [] }Run them afterwards with run_script. A script already on the iPhone is skipped unless reinstall is true.
reinstall_iphone
WriteArguments
iphonestringrequired- The iPhone's name or id.
confirmbooleanrequired- Must be true: this purges the iPhone's Voice Control commands.
update_importboolean- Also replace the import script. True by default.
scriptsstring[]- Keep only these installed scripts. Left out, all of them.
Answer
{ "ok": true, "iphone": "Golf", "kept": ["Warm-up 1", "Account tiktok sync"], "importUpdated": true }Destructive: every command not in the file is gone, and the iPhone is busy for a few minutes. The iPhone's purge script (“<iPhone> voice control delete”) must be installed; set it up from Swipe Pilot first.
script_blocks
ReadArguments
kindstring- One block kind, such as swipe or repeatCount. Leave out for all of them.
Answer
{
"overview": "A script is { name, blocks: [...] }…",
"blocks": [{ "kind": "tap", "category": "Gestures", "does": "One tap in a zone.", "fields": "targetVariable (zone) or region…" }]
}Random choices (a variable pause, a random condition, where a touch lands) are drawn when the script is imported and stay the same at each run: run it with reinstall to draw again. Blocks marked mac-only are skipped in a cloud run.
list_zones
ReadArguments
iphonestring- Only this iPhone, by its name or its id.
Answer
{
"builtIn": ["companion_tap", "screen_top_left_phonepilot"],
"iphones": [{ "iphone": "Alpha", "pack": "A1B2…", "screens": [{ "screen": "TikTok home", "zones": ["tiktok_like_btn"] }] }]
}get_script
ReadArguments
scriptstringrequired- The script's name or id.
Answer
{
"id": "30672697-…",
"name": "Morning scroll",
"revision": 3,
"purpose": "script",
"blocks": [{ "kind": "humanSwipeUp" }],
"blockCount": 1,
"installedOn": [{ "iphone": "Alpha", "command": "Alpha script 0", "upToDate": false }]
}create_script
WriteArguments
namestringrequired- The script's name.
blocksarrayrequired- The blocks, in order. See script_blocks.
notestring- An optional note.
Answer
{
"id": "F3A76695-…",
"name": "Like five videos",
"blockCount": 4,
"next": "Run it with run_script…"
}update_script
WriteArguments
scriptstringrequired- The script's name or id.
namestring- A new name.
notestring- A new note.
blocksarray- The new blocks.
Answer
{
"id": "F3A76695-…",
"name": "Like five videos",
"revision": 4,
"installedCopies": 1,
"next": "The installed copies are out of date: run_script with reinstall true…"
}The iPhones keep the old version until run_script is called with reinstall.
delete_script
WriteArguments
scriptstringrequired- The script's name or id.
Answer
{
"ok": true,
"id": "F3A76695-…",
"name": "Like five videos",
"installedOn": [{ "iphone": "Golf", "command": "Golf script 10" }],
"next": "Deleted from the workspace. Still installed on Golf: run reinstall_iphone to remove it from those iPhones too."
}Screens
What an iPhone shows, read by Swipe Pilot for Mac (open, linked to the account, iPhone on USB, developer mode on) with the Instruments screenshot service. No screen recording starts, so apps on the iPhone are not told the screen is captured: it is safe while TikTok or Instagram is open. The agent uses it to make zones and to check each step of a run.
screenshot
ReadArguments
iphonestringrequired- The iPhone's name or id.
sincestring- An earlier capture id of the same iPhone: the answer says whether the screen changed.
imageboolean- Include the image (default true). False returns only the text.
Answer
{
"capture": "9C1E…",
"iphone": "Alpha",
"width": 1170,
"height": 2532,
"method": "dvt (screen not recorded)",
"text": [{ "text": "For You", "region": { "x0": 0.42, "y0": 0.05, "x1": 0.58, "y1": 0.08 } }]
}The image comes as MCP image content next to this JSON.
find_zones
WriteArguments
iphonestringrequired- The iPhone's name or id.
targetsstring[]required- What to find, up to 12: « like button », « tiktok_first_result: the first search result ».
capturestring- A capture id from screenshot. Left out: a new screen is taken.
screenstring- Save the zones on this screen of the pack, such as « TikTok feed ».
distribution"bell" | "uniform" | "exact"- Where touches land in saved zones (bell by default).
Answer
{
"capture": "9C1E…",
"zones": [{ "target": "the like button", "name": "tiktok_like", "region": { "x0": 0.86, "y0": 0.48, "x1": 0.97, "y1": 0.54 }, "placedBy": "model" }],
"missing": [],
"saved": 1
}name_zones
WriteArguments
iphonestringrequired- The iPhone's name or id.
capturestringrequired- A capture taken while the names were shown (a script with System.ShowElementNames).
withoutstring- A capture of the same screen without the names: its own text (captions, usernames) is left out.
onlystring[]- Keep only these labels, such as ["Profile", "Search"].
screenstring- Save the zones on this screen of the pack.
prefixstring- Put before each zone name, such as tiktok (tiktok_profile).
Answer
{
"capture": "B3D0…",
"zones": [{ "name": "tiktok_profile", "label": "Profile", "region": { "x0": 0.865, "y0": 0.933, "x1": 0.955, "y1": 0.967 } }],
"saved": 1
}Hide the names afterwards (System.HideElementNames). In TikTok and Instagram, write the routine with taps on these zones: they replay human gestures.
check_screen
ReadArguments
iphonestringrequired- The iPhone's name or id.
questionstring- « Is a popup open? », « Which account is open? ». Left out with niche or account: « is this video in the niche? », answered yes or no.
nichestring- A niche of the workspace: the screen is judged against it and its keywords (supervised warm-up).
accountstring- An account such as @mybrand: its niche is used, as with niche.
optionsstring[]- The possible answers. The answer is one of them, or unknown.
expect_textstring[]- Text that should be on the screen. Checked on the Mac's reading, without the model.
sincestring- An earlier capture id: a tap that changed nothing missed.
capturestring- A capture id from screenshot. Left out: a new screen is taken.
Answer
{
"capture": "A07F…",
"answer": "yes",
"confidence": 0.9,
"reason": "A gym workout.",
"changed": true
}keyboard
WriteArguments
iphonestringrequired- The iPhone's name or id.
textstring- Text to type, 500 characters at most.
keystring- return, tab, shift_tab, space, escape, backspace, delete, the arrows, back, actions, find, menu, lock, gestures, select_all, copy or paste.
Answer
{
"iphone": "Alpha",
"done": "type"
}connect_esp32
WriteArguments
iphonestringrequired- The iPhone to pair.
secondsnumber- How long pairing stays open, 30 to 300 (default 120).
statusboolean- Only read the board: name, firmware, paired iPhones.
Answer
{
"iphone": "Delta",
"done": "esp32_pair",
"name": "Swipe Pilot Mic 3AEE",
"seconds": 120,
"next": "Pairing is open 120 s. On Delta: Settings › Bluetooth, tap « Swipe Pilot Mic 3AEE »…"
}install_tap_grid
WriteArguments
iphonestringrequired- The iPhone's name or id.
Answer
{
"ok": true,
"id": "C1F0…",
"iphone": "Delta",
"commands": 302
}tap_at
WriteArguments
iphonestringrequired- The iPhone's name or id.
x, ynumberrequired- The point, in fractions of the screen, as screenshot gives it.
Answer
{
"iphone": "Delta",
"area": "grid yankee 8",
"offByPoints": 4.2,
"said": "grid yankee 8",
"by": "companion"
}In « esp32-phones », open a microphone session first (voice_control action session). In « console » and « esp32-pc », keep the console of the website open with its sound on.
say_command
WriteArguments
iphonestringrequired- The iPhone's name or id.
phrasestringrequired- The command, in the iPhone's Voice Control language.
Answer
{
"iphone": "Delta",
"said": "Open TikTok",
"by": "companion",
"seconds": 3
}remember
WriteArguments
topicstringrequired- A short topic, such as « Delta TikTok popups ».
notestringrequired- What to remember. Empty removes the topic.
Answer
{ "ok": true, "topic": "Delta TikTok popups" }recall
ReadArguments
searchstring- Only topics or notes containing this.
Answer
{
"notes": [{ "topic": "Delta TikTok popups", "note": "Contacts popup: « Don't allow » at about x 0.3, y 0.62.", "updatedAt": 1795370000 }]
}await_task
ReadArguments
taskstringrequired- The task id from run_script or queue_post.
timeout_secondsnumber- 1 to 55 seconds, 45 by default.
Answer
{
"task": "5D0B…",
"state": "done · end confirmed by the iPhone",
"ended": true
}Routines
A routine runs the same post or script again and again. Each run is queued about 15 minutes before its time, then starts at a random moment in its window, kept apart from the iPhone's other tasks by its gap between tasks.
list_routines
ReadArguments
iphonestring- Only this iPhone, by its name or its id.
Answer
{
"routines": [
{
"id": "2B157370-199A-4AE3-8672-629C692626E8",
"name": "Daily slideshow",
"iphone": "Alpha",
"runs": {
"kind": "post",
"media_ids": ["6A4B4B3E-148E-4B82-8CF7-19D6EFE37B71", "20EEA54D-A8F9-43FF-ADD7-CB63B41A0ACE"],
"caption": "Three things nobody tells you about…",
"title": null,
"account": "@mybrand"
},
"nextAt": 1792593380,
"everyHours": 24,
"windowMinutes": 45,
"paused": false
}
]
}runs.kind is post (with its media), script (a script, by its name and command) or command (a Voice Control command made on the website). everyHours is 0 for a routine that runs once.
create_routine
WriteArguments
namestringrequired- The routine's name, such as Morning slideshow.
first_atstringrequired- Its first run, in ISO 8601 with a time zone.
iphonestring- The iPhone's name or id. Optional for a post when account is given.
every_hoursnumber- Hours between two runs: 1 or more, decimals allowed. 0 runs it once.
window_minutesnumber- Each run starts at a random moment up to this many minutes after its time, so runs never start at a fixed time. 0 to 360, and shorter than every_hours. 0 by default.
media_idsstring[]- For a post: 1 to 12 media ids, in slide order. The same media are posted at each run.
captionstring- For a post: its caption.
titlestring- For a post: its title, for platforms that have one.
accountstring- For a post: the account it is for, such as @mybrand. It must be on the routine's iPhone.
scriptstring- For a script: its name or id, or the command it is installed under, as run_script takes it. Give media_ids or script, not both.
Answer
{
"ok": true,
"routine": {
"id": "2B157370-199A-4AE3-8672-629C692626E8",
"name": "Daily slideshow",
"iphone": "Alpha",
"runs": {
"kind": "post",
"media_ids": ["6A4B4B3E-148E-4B82-8CF7-19D6EFE37B71", "20EEA54D-A8F9-43FF-ADD7-CB63B41A0ACE"],
"caption": "Three things nobody tells you about…",
"title": null,
"account": "@mybrand"
},
"nextAt": 1792593380,
"everyHours": 24,
"windowMinutes": 45,
"paused": false
}
}A script installed on the iPhone runs under its command at each run. A script not installed is imported again at each run, as routines made on the website do. A workspace keeps 100 routines at most.
update_routine
WriteArguments
idstringrequired- The routine's id, from list_routines or create_routine.
pausedboolean- true pauses the routine, false resumes it.
namestring- A new name.
iphonestring- Move it to this iPhone. A script routine then needs script again: on another iPhone, a script runs under another command.
next_atstring- Its next run, in ISO 8601 with a time zone.
every_hoursnumber- Hours between two runs: 1 or more, decimals allowed. 0 runs it once.
window_minutesnumber- Each run starts at a random moment up to this many minutes after its time, so runs never start at a fixed time. 0 to 360, and shorter than every_hours. 0 by default.
media_idsstring[]- For a post: 1 to 12 media ids, in slide order. The same media are posted at each run.
captionstring- For a post: its caption.
titlestring- For a post: its title, for platforms that have one.
accountstring- For a post: the account it is for, such as @mybrand. It must be on the routine's iPhone.
scriptstring- For a script: its name or id, or the command it is installed under, as run_script takes it. Give media_ids or script, not both.
Answer
{
"ok": true,
"routine": {
"id": "2B157370-199A-4AE3-8672-629C692626E8",
"name": "Daily slideshow",
"iphone": "Alpha",
"runs": {
"kind": "post",
"media_ids": ["6A4B4B3E-148E-4B82-8CF7-19D6EFE37B71", "20EEA54D-A8F9-43FF-ADD7-CB63B41A0ACE"],
"caption": "Three things nobody tells you about…",
"title": null,
"account": "@mybrand"
},
"nextAt": 1792593380,
"everyHours": 24,
"windowMinutes": 45,
"paused": true
}
}An empty account takes the account off a post routine. Captions and titles left out stay as they are.
delete_routine
WriteArguments
idstringrequired- The routine's id.
Answer
{ "ok": true, "id": "2B157370-199A-4AE3-8672-629C692626E8", "name": "Daily slideshow" }A run it already queued stays in the queue: find it with list_queue and cancel it with cancel_task.
Accounts
Which account an iPhone has open.
set_voice_mode
WriteArguments
modestringrequired- console: a browser with the Swipe Pilot console open and sound on says them. phones: an available iPhone says them for the others.
Answer
{ "ok": true, "voiceMode": "phones" }It applies to every iPhone of the workspace. list_iphones shows voiceMode. In console mode, nothing runs while no browser console is open with its sound on.
switch_account
WriteArguments
accountstringrequired- The account handle, such as @mybrand.
iphonestring- The iPhone's name or id. Left out, the iPhone the account is on.
Answer
{ "ok": true, "iphone": "Delta", "account": "@mybrand", "line": 3, "command": "Delta account tiktok 3", "task": "7D0B0A8C-6E0F-4E4F-9B50-2D3C1E8F7A11" }Before it, run the script “Account tiktok sync” on the iPhone (run_script): it reads TikTok's account list, and without it the switch can land on another account. It waits behind the tasks already queued: run the script or the post after it. It fails when the iPhone's account list is not known yet or the account is already open; list_iphones shows openAccount.
Niches
Accounts grouped by theme, and the keywords a script draws from for each theme.
list_niches
ReadArguments
None.
Answer
{
"niches": [
{ "niche": "Fitness", "accounts": [{ "platform": "tiktok", "handle": "@mybrand", "iphone": "Delta" }], "keywords": ["gym", "leg day"] }
],
"withoutNiche": []
}A niche exists while an account is in it; one kept only for its keywords is listed with no accounts.
set_account_niche
WriteArguments
accountstringrequired- The account handle, such as @mybrand.
nichestringrequired- The niche, 30 characters at most. Empty takes the account out.
Answer
{ "ok": true, "account": "@mybrand", "niche": "Fitness" }The spelling of a niche that already exists is kept, so Fitness and fitness stay one niche.
set_niche_keywords
WriteArguments
nichestringrequired- The niche's name.
keywordsstring[]required- Up to 200 keywords. An empty list removes them.
Answer
{ "ok": true, "niche": "Fitness", "keywords": ["gym", "leg day"] }A script text that holds {random_niche_keyword} gets one of them at each run, for the niche of its account.
Summary
What went out, as the iPhones confirmed it.
daily_summary
ReadArguments
hoursnumber- How many hours back, 1 to 168. 24 by default.
Answer
{
"since": 1792506600,
"until": 1792593000,
"posts": 6,
"failed": 1,
"toCheck": 0,
"phones": [
{
"device": "BDCE218C-953F-4976-9E41-61FE9DB13FBA",
"name": "Alpha",
"posts": 4,
"runs": 2,
"failed": 0,
"toCheck": 0,
"lastPost": 1792590000,
"quiet": false,
"accounts": { "mybrand": 3, "otherbrand": 1 }
}
]
}A post counts once the iPhone confirmed the end of its post script: Swipe Pilot never opens TikTok to check. quiet is true for an iPhone that had posts due and confirmed none for 18 hours.
Errors and limits
A tool that cannot do what it was asked answers with isError: true and one sentence saying why, such as No iPhone named Bravo. Call list_iphones to see them. The agent reads it and can correct itself.