skil.li

Calling skil.li from a skillie

A skillie reaches skil.li's features in two ways:

open "skilli://…""$SKILLI_CLI" call <tool> …
WaitsNo: fire and forgetYes: until the tool answers
ResultNoneText on standard output, exit status
Asked firstBy the link rules (what could change the Mac asks)By your approval mode and the tool's right
Works outside skil.liYes, from anything that opens a URLYes, as Skilli call from Terminal (below); $SKILLI_CLI itself is set only in a skillie skil.li runs, and --socket picks another skil.li

Recipes for each feature (CleanShot, windows, Keep Awake, the recorder, Shortcuts…) are in the collection's guide: Use skil.li's other features. This page is the reference.

"$SKILLI_CLI" call

"$SKILLI_CLI" call <tool> [name=value …]
"$SKILLI_CLI" call <tool> '{"name": "value", "list": ["a", "b"]}'
ExitMeaningWhere the text goes
0DoneThe answer on standard output
1Not done: declined, refused, failed, unknown tool, skil.li not runningWhy, on standard error (first line first)
2The call is written wrong (no tool, a word that is not name=value, bad JSON, unknown option)Usage on standard error
if said=$("$SKILLI_CLI" call run_shortcut name="Morning Routine" 2>&1); then
  echo "Done: $said"
else
  echo "Not done: ${said%%$'\n'*}"
fi

Approvals

A skillie's call is treated as an outside agent's (when an agent's run_skillie started the skillie, as that agent's: only the tools its run has, never list_tool_rights or set_tool_rights):

The question shows in the skillie's own card, named after it (running.md).

Outside a skillie

From Terminal, Skilli call works the same way and reaches the skil.li you run, starting it if needed:

"<skil.li's app>/Contents/MacOS/Skilli" call system_info

Skilli mcp is the same tools as an MCP server on standard input and output, for Claude Code, Codex and other agents.

Tools

Every tool skil.li offers, by group. Arguments with ? are optional. reads: only reads, never changes anything.

Selection and clipboard

ToolWhat it doesArguments
get_selectionThe text selected in the app in front. reads
replace_selectionReplaces the selected text.text
get_clipboardThe clipboard's text; for an image, the text read in it. reads
set_clipboardCopies a text.text

Apps, browsers, windows

ToolWhat it doesArguments
get_frontmost_appThe app in front. reads
list_appsInstalled apps. reads
open_appOpens an app. lightname
open_urlOpens a link. lighturl
update_appUpdates an app: its own Check for Updates, else the App Store, else Homebrew. Without a name: the app in front.name?
list_tabsOpen browser tabs. reads
focus_tabGoes to a browser tab.title
search_historySearches the browsers' history. readsquery?
list_projectsRecent code projects (Cursor, VS Code, Zed…). reads
open_projectOpens a recent project in its editor.name, editor?
list_windowsOpen windows. reads
focus_windowBrings a window forward. lightwindow
save_window_layoutSaves where the windows are, under a name.name
apply_window_layoutPuts a saved layout back.name
ToolWhat it doesArguments
search_menusSearches the front app's menus. readsquery?
press_menuChooses a menu item.path
list_uiThe front window's buttons and fields. reads
find_uiFinds an element by description. readsdescription
press_uiPresses an element.id
set_ui_valueFills a field.id, text
press_keysSends a key or shortcut to the app in front (cmd+s).keys
do_in_appHands a whole goal to "do it here" and waits until it is done.goal, app?

SI Commands, skillies, actions

ToolWhat it doesArguments
list_commandsYour SI Commands. reads
run_commandRuns an SI Command on a text; returns its answer (nothing pasted). lightid, text
list_skilliesYour skillies: title, package, description, arguments. reads
run_skillieRuns a skillie by title; returns what it printed.title, arguments? (list)
create_skillieWrites a new skillie. language: bash, zsh, python, node, swift, ruby. mode: compact (default), silent, fullOutput.title, description?, language, code, mode?, arguments? (list of placeholders), needs_confirmation?
run_actionRuns a skil.li action: a linked app's command (cleanshot.capture-area), a text case change.id, variant?, file?
list_shortcutsYour shortcuts in Apple's Shortcuts app. reads
run_shortcutRuns a shortcut; returns its text.name, input?, selection?
create_app_linkAdds an app skil.li drives through its documented URL scheme.app, scheme, documentation, commands, id?, minimum_version?, note?
create_skillWrites a skill for Ask's agent.name, description, instructions
convert_currencyConverts an amount at the day's rates, on this Mac; JSON with the rate and its day. readsamount, from, to?
start_timerStarts a timer in the menu bar.duration, label
list_timersRunning timers. reads
cancel_timerCancels a timer.label

Calendar, reminders, contacts, messages

ToolWhat it doesArguments
list_eventsYour calendars' events. readsfrom?, to?, query?
create_eventAdds an event.title, start, end?, calendar?, location?, notes?, url?, alert_minutes?, repeat?
update_eventChanges an event.id, title?, start?, end?, location?, notes?
delete_eventDeletes an event.id
list_remindersYour reminders. readslist?, query?, due_before?, completed?
create_reminderAdds a reminder. lighttitle, due?, notes?, list?, priority?, repeat?, url?
update_reminderChanges a reminder.id, done?, title?, due?, list?, priority?, notes?
delete_reminderDeletes a reminder.id
search_contactsFinds people in your contacts. readsquery
compose_emailOpens a new mail, not sent. lightto (list), subject?, body?
send_messageSends a message in Slack or Discord, after you confirm who. lightapp, to, text

GitHub

ToolWhat it doesArguments
list_pull_requestsYour open pull requests and reviews, by group (ready, blocked, waiting, testing). readsgroup?, query?
list_github_notificationsYour unread GitHub notifications that ask you for something (review, mention, assignment). readsquery?
merge_pull_requestMerges a pull request.pull_request
update_pull_request_branchUpdates a pull request's branch.pull_request
mark_github_notification_readMarks a notification read. lightid
mark_all_github_notifications_readMarks read every notification list_github_notifications gives for the same query. lightquery?
run_github_workflowStarts a GitHub Actions workflow with workflow_dispatch (a release, a deploy), approves its environment when you may, then follows it in the menu bar and says how it ended; asked every time, the workflow and its inputs named. Answers once the run started, with its link.repo (owner/name), workflow (its file, release.yml), ref? (its default branch), inputs? (one JSON object)
get_github_workflow_runA workflow run's state, each job and step, the release it published. readsrun (its link)

The Mac

ToolWhat it doesArguments
system_infoBattery, free disk, memory, load, Wi-Fi, IP address, uptime, macOS version. reads
run_mac_commandA Mac command (lock, sleep, dark mode, arrangeWindows, empty the Trash…) or a window placement (window.leftHalf).command
keep_awakeKeeps the Mac awake, longer, or stops.minutes?, more?, until?, sleep?
set_volumeSets the volume.percent
list_audio_devicesSpeakers and microphones. reads
set_audio_deviceSwitches the output or input.device, kind?
list_bluetooth_devicesPaired Bluetooth devices. reads
connect_bluetooth_deviceConnects or disconnects one.device, action?
list_processesRunning processes. readsquery?
quit_processQuits a process.pid, force?
brew_searchSearches Homebrew. readsquery?
brew_installInstalls with Homebrew.name, cask?
brew_upgradeUpgrades with Homebrew.name?

Meeting recorder

ToolWhat it doesArguments
record_meetingOpens the Record card; waits for ↩ (started) or esc. lighttitle?
import_recordingMakes a recording of a sound or video file (its sound copied, transcribed on the Mac, voices told apart); the file stays where it is.path
recording_statusThe recording on now. reads
pause_recordingPauses it.
resume_recordingResumes it.
stop_recordingStops it; the transcript is made on the Mac.
set_recording_sourceTurns the microphone, the Mac's sound, the webcam or the screen on or off from now on (Record card open or recording); the screen is the meeting's window, or with display the whole screen (main, meeting, or a screen's name): every app on it, notifications included, skil.li's own windows left out.source, on, display?
list_recordingsThe recordings, newest first: id (the folder's name), title, date, length, state, summary and chapters. No words. reads
get_transcriptA recording's transcript, as transcript.md has it; asked every time, the recording named. readsrecording? (an id or a title; empty: the newest)
recording_followupWhat its window's ⌘K does with your SI: summary, chapters, action_items (to Reminders), recap_mail (a mail opens, you send it), ask (with question); asked every time.action, recording?, question?
rename_recordingRenames a recording as Rename… in its window does: its title, its folder by the same rules, transcript.md's heading; not while it records or is transcribed. Returns its new id.recording, title

Snippets and your own tools

ToolWhat it doesArguments
list_snippetsYour snippets. reads
insert_snippetTypes a snippet at the caret.name

Your own tools (webhooks, Settings → Tools) are offered under the names you gave them.

skil.li's settings

Each change asks in the card, every time.

ToolWhat it doesArguments
get_settingsReads the settings (secrets only as set or not). readspane?
set_settingChanges one setting.pane?, setting, value, change?
set_aliasGives a launcher item an alias.alias, item, kind?
remove_aliasRemoves an alias.alias
create_quicklinkAdds a quicklink.name, url, keyword?
update_quicklinkChanges a quicklink.name, new_name?, url?, keyword?
delete_quicklinkDeletes a quicklink.name
create_snippetAdds a snippet.name, text, keyword?
update_snippetChanges a snippet.name, new_name?, text?, keyword?
delete_snippetDeletes a snippet.name
add_shortcutBinds a key to an action.action, keys
change_shortcutChanges a key.keys, new_keys
remove_shortcutRemoves a key.keys
list_scheduled_asksAsks on a schedule. reads
add_scheduled_askAsks your SI something on a schedule.when, ask
pause_scheduled_askPauses or resumes one.ask, paused?
remove_scheduled_askRemoves one.ask
list_tool_rightsThe approval mode, your rules, each tool's right. readsserver?, search?
set_tool_rightsSets tools' rights (tool=right: default, ask, allow, block).server, rights (list)

Talking to you

ToolWhat it doesArguments
ask_userAsks you a question in the card; returns the answer.question, options? (list)
notifyShows a short note in the card.message
approveClaude Code's permission prompt for another server's tool. Offered only when an Act command's agent started the skillie; not meant to be called from a skillie.tool_name, input

open a link from the script: it returns at once, skil.li does the rest.

LinkWhat it runs
skilli://run/<entry id>Any launcher row, by its id: cmd:emoji, system:keepAwake, system:link:cleanshot.capture-area, system:shortcut:<id>. ⌘K → Copy Link on a row gives its link.
skilli://skillie/<path>?arg=…A skillie, by its path in the skillies folder, arguments in order.
skilli://quicklink/<keyword>?q=…A quicklink, with its query.
skilli://layout/<id>A saved window layout.
skilli://do?app=<app>&goal=<goal>"Do it here" toward a goal (percent-encoded). Several run one after the other, in order.
skilli://record?title=…The Record card (nothing records before ↩).
skilli://record/pause, …/resume, …/stopPauses, resumes or stops the recording on now; asked every time, no Always.
skilli://record/source?source=screen&display=mainA source on or off, as set_recording_source (source, on, display): the whole screen here; asked every time, what it turns on named.
skilli://record/import?file=…The Import panel, at that file (nothing imported before ↩).
skilli://record/open?recording=…&at=…A recording's window (by its id or title), playing from at seconds.
skilli://record/summary?recording=…, …/chapters, …/actions, …/recap, …/ask?question=…What its window's ⌘K does with your SI; asked every time, the recording named, no Always.
skilli://record/rename?recording=…&title=…Renames a recording, its folder too; asked every time, both named.
skilli://github/workflow?repo=…&workflow=…&ref=…&<input>=…Starts a GitHub workflow as run_github_workflow does; every other item is one of its inputs; asked every time, no Always.
skilli://skillies/import?url=…Shows a skillie from the web before Add.
skilli://apps/import?url=…Shows an app file before Add.

A link can come from any app or web page, so what could change the Mac, type, or run your code asks in the card first; Always in that card lets links run it at once (not for a skillie with needsConfirmation, nor for the recorder). Opening, reading and placing windows run at once. The rules are in SkilliLink.asksFirst (Sources/SkilliCore/SkilliLink.swift).

Edit this page on GitHub ↗