Skip to main content

Python CLI command reference

toothfairy-cli@latest…

Every command below is a subcommand of toothfairy (alias tf). Global credentials come from TF_API_KEY / TF_WORKSPACE_ID or toothfairy configure.

93 commands.

Index​

CommandSummary
billing-month-costsGet monthly usage and cost information.
cancel-benchmark-runCancel a running benchmark.
chatGet details of a specific chat.
chatsList all chats in the workspace.
clone-voiceClone a custom voice from a reference audio clip.
config-showShow current configuration.
configureConfigure ToothFairy CLI credentials and settings.
create-agentCreate a new agent.
create-agent-functionCreate a new agent function.
create-alertCreate a new alert that notifies recipients when its conditions match.
create-authorizationCreate a new authorization.
create-benchmarkCreate a new benchmark.
create-channelCreate a new communication channel.
create-connectionCreate a new connection (hosting configuration).
create-scheduled-jobCreate a new scheduled job (cron job).
create-triggerCreate a new event-driven agent trigger.
delete-agentDelete an agent.
delete-agent-functionDelete an agent function.
delete-alertDelete an alert.
delete-authorizationDelete an authorization.
delete-benchmarkDelete a benchmark.
delete-channelDelete a channel.
delete-connectionDelete a connection.
delete-scheduled-jobDelete a scheduled job.
delete-triggerDelete a trigger.
delete-voiceDelete a custom voice.
downloadDownload a file from ToothFairy workspace.
finetuning-cancelCancel a fine-tuning job.
finetuning-generate-datasetGenerate a fine-tuning dataset from workspace documents.
finetuning-jobsList fine-tuning jobs.
finetuning-list-modelsList trainable models for fine-tuning.
finetuning-serveChoose which saved artifact answers requests (final adapter or a checkpoint).
finetuning-servingShow the serving config, the artifact being served and all servable checkpoints.
finetuning-serving-powerHold a fine-tuned model warm, or release the hold.
finetuning-startStart a fine-tuning training job (job must be in datasetReady status).
finetuning-statusGet detailed status of a fine-tuning job.
generate-imageGenerate images from text (or image-to-image with --base-image).
generate-videoGenerate video from text or animate a still frame (--base-image).
get-agentGet details of a specific agent.
get-agent-functionGet details of a specific agent function.
get-alertGet a specific alert by ID.
get-authorizationGet details of a specific authorization.
get-benchmarkGet details of a specific benchmark.
get-benchmark-runGet a benchmark run by ID with score and metadata.
get-channelGet details of a specific channel.
get-charting-settingsGet charting settings for the workspace.
get-connectionGet details of a specific connection (hosting configuration).
get-dictionaryGet details of a specific dictionary entry.
get-embeddingGet details of a specific embedding.
get-embeddings-settingsGet embeddings settings for the workspace.
get-media-taskGet the status of an asynchronous media generation task.
get-scheduled-jobGet details of a specific scheduled job.
get-scheduled-jobs-by-statusGet scheduled jobs by status.
get-streamGet details of a specific stream.
get-triggerGet a specific trigger by ID.
get-voiceGet details of a specific voice.
help-guideShow detailed help and usage examples.
list-agent-functionsList all agent functions.
list-agentsList all agents.
list-alertsList all alerts in the workspace.
list-authorizationsList all authorizations.
list-benchmark-runsList benchmark runs for the workspace.
list-benchmarksList all benchmarks.
list-channelsList all channels.
list-connectionsList all connections (hosting configurations).
list-dictionariesList all dictionary entries.
list-scheduled-jobsList all scheduled jobs.
list-streamsList all streams.
list-triggersList all triggers in the workspace.
list-voicesList available TTS voices (built-in + workspace clones).
pause-alertPause an alert (stop evaluating and notifying).
pause-scheduled-jobPause a scheduled job.
pause-triggerPause (disarm) a trigger.
predictGenerate streaming AI predictions (OpenAI-compatible) from a ToothFairyAI model.
resume-alertResume a paused alert.
resume-scheduled-jobResume a paused scheduled job.
resume-triggerResume (arm) a paused trigger.
run-benchmarkStart a benchmark run to evaluate an agent.
searchSearch for documents in the knowledge hub.
sendSend a message to a ToothFairyAI agent.
send-streamSend a message to a ToothFairyAI agent with real-time streaming response.
update-agentUpdate an existing agent.
update-agent-functionUpdate an existing agent function.
update-alertUpdate an existing alert.
update-authorizationUpdate an existing authorization.
update-benchmarkUpdate an existing benchmark.
update-channelUpdate an existing channel.
update-charting-settingsUpdate charting settings for the workspace.
update-connectionUpdate an existing connection (hosting configuration).
update-embeddings-settingsUpdate embeddings settings for the workspace.
update-scheduled-jobUpdate an existing scheduled job.
update-triggerUpdate an existing trigger.
uploadUpload a file to ToothFairy workspace.

billing-month-costs​

Get monthly usage and cost information.

Arguments

NameRequiredDescription
<month>yes—
<year>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy billing-month-costs <month> <year>

cancel-benchmark-run​

Cancel a running benchmark.

Arguments

NameRequiredDescription
<run_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy cancel-benchmark-run <run_id>

chat​

Get details of a specific chat.

Arguments

NameRequiredDescription
<chat_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
toothfairy chat <chat_id>

chats​

List all chats in the workspace.

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
toothfairy chats

clone-voice​

Clone a custom voice from a reference audio clip.

Options

FlagRequiredDefaultDescription
--nameyesDisplay name of the cloned voice
--clipyesPath to the reference audio clip (WAV/MP3, 15-60s)
--languagenoenLanguage of the clip (ISO 639-1)
--descriptionnoDescription stored with the voice
-o, --outputnotextOutput format
toothfairy clone-voice

config-show​

Show current configuration.

toothfairy config-show

configure​

Configure ToothFairy CLI credentials and settings.

Options

FlagRequiredDefaultDescription
--base-urlnohttps://api.toothfairyai.comToothFairy API base URL
--ai-urlnohttps://ai.toothfairyai.comToothFairyAI URL
--ai-stream-urlnohttps://ais.toothfairyai.comToothFairyAI Streaming URL
--api-keyyesAPI key
--workspace-idyesWorkspace ID
--config-pathnoPath to save config file
toothfairy configure

create-agent​

Create a new agent.

Options

FlagRequiredDefaultDescription
--labelnoAgent label
--descriptionnoAgent description
--emojinoAgent emoji
--modenoAgent mode
--agent-typenoAgent type (Chatbot|BusinessAnalyst|ContentCreator|Default)
--llm-providernoLLM provider
--llm-base-modelnoLLM base model
--reasoning-modenoReasoning mode (auto|dynamic|always|never)
--reasoning-effortnoReasoning effort (none|low|medium|high)
--fn-reasoning-effortnoFunction reasoning effort
--reasoning-budgetnoReasoning budget
--voice-namenoVoice for TTS (all modes) — can be a cloned voice_id from clone-voice
--voice-file-keynoS3 key of the reference clip used for the cloned voice
--audios-generation-tts-modelnoVoice-over provider for audio generation (cartesia for cloned voices)
--audios-generation-voice-namenoVoice-over voice for audio generation (can be a cloned voice_id)
--audios-generation-speech-modenoSpeech mode for audio generation (audible|direct)
--voice-sensitivitynoVoice sensitivity
--stt-modelnoSpeech-to-text model
--tts-modelnoText-to-speech model
--llm-voice-modelnoLLM voice model
--default-voice-languagenoDefault voice language
--departmentnoDepartment
--temperaturenoTemperature (0.0-2.0)
--max-tokensnoMax tokens
--top-knoTop K for retrieval
--doc-top-knoDoc top K
--max-historynoMax conversation history
--allow-internet-searchnoAllow internet search
--allow-images-uploadnoAllow image uploads
--allow-videos-uploadnoAllow video uploads
--allow-audios-uploadnoAllow audio uploads
--allow-docs-uploadnoAllow document uploads
--allow-images-generationnoAllow image generation
--agentic-ragnoEnable agentic RAG
--re-ranknoEnable re-ranking
--rag-search-strategynoRAG search strategy
--min-retrieval-scorenoMinimum retrieval score
--has-mathnoEnable math capabilities
--has-codenoEnable code capabilities
--has-computernoEnable computer use capabilities
--has-nernoEnable NER capabilities
--canvas-enablednoEnable canvas
--enable-json-outputnoEnable JSON output
--force-json-outputnoForce JSON output
--hide-reasoningnoHide reasoning from output
--show-citationsnoShow citations
--ephemeral-agentnoMark as ephemeral agent
--parent-agent-idnoParent agent ID
--agents-poolnoComma-separated agent IDs for agents pool
--mcpsnoComma-separated MCP IDs
--max-planning-stepsnoMax planning steps
--max-browser-stepsnoMax browser steps
--custom-code-execution-environmentsnoComma-separated custom code execution environment IDs
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy create-agent

create-agent-function​

Create a new agent function.

Options

FlagRequiredDefaultDescription
--nameyesFunction name
--descriptionyesFunction description
--urlnoFunction URL
--request-typenoRequest type
--authorisation-typenoAuthorisation type
--authorisation-keynoAuthorisation key
--authorisation-idnoAuthorisation ID
--parametersnoParameters as JSON
--modelnoModel to use
--scopenoFunction scope
--json-path-extractornoJSON path extractor
--headersnoHeaders as JSON
--static-argsnoStatic args as JSON
--custom-execution-codenoCustom execution code
--is-mcp-servernoIs MCP server
--is-callback-fnnoIs callback function
--is-database-scriptnoIs database script
--is-html-fnnoIs HTML function
--is-chat-fnnoIs chat function
--is-hand-off-fnnoIs hand-off function
--is-code-templatenoIs code template
--is-agent-skillnoIs agent skill
--code-execution-environment-idnoCode execution environment ID
--on-fn-callnoOn function call config as JSON
--hand-off-agentnoHand-off agent ID
--hand-off-to-original-agent-on-completionnoHand off to original agent on completion
--hand-off-to-original-agent-on-failurenoHand off to original agent on failure
--hand-off-agent-on-completionnoHand-off agent ID on completion
--hand-off-agent-on-failurenoHand-off agent ID on failure
--agent-skill-scriptnoAgent skill script
--chat-scriptnoChat script
--chat-actionnoChat action (suggestion|nextQuestion|humanSupport|redirection|script)
--html-urlnoHTML URL
--html-scriptnoHTML script
--is-html-redirect-fnnoIs HTML redirect function
--html-form-on-successful-submit-messagenoHTML form success message
--html-form-on-failed-submit-messagenoHTML form failure message
--db-schema-metadatanoDB schema metadata as JSON
--pre-execution-scriptnoPre-execution script
--post-execution-scriptnoPost-execution script
--db-scriptnoDatabase script
--db-connection-idnoDatabase connection ID
--pre-execution-fn-idnoPre-execution function ID
--pre-execution-mappingnoPre-execution mapping as JSON
--oauth-connection-idnoOAuth connection ID
--handed-off-to-human-on-callnoHanded off to human on call
--graphql-querynoGraphQL query
--graphql-mutationnoGraphQL mutation
--graphql-operation-namenoGraphQL operation name
--users-to-hand-off-tonoComma-separated user IDs to hand off to
--depends-on-before-executionnoComma-separated function IDs to depend on before execution
--depends-on-after-executionnoComma-separated function IDs to depend on after execution
--is-globalnoIs global function
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy create-agent-function

create-alert​

Create a new alert that notifies recipients when its conditions match.

Options

FlagRequiredDefaultDescription
--nameyesAlert name
--trigger-typeyesTrigger type
--conditionsyesConditions as JSON array string: [{"field","operator","value"}]
--descriptionnoAlert description
--severitynoSeverity
--cooldown-minutesnoMinimum minutes between repeated notifications
--agent-idnoAgent ID to attach the alert to
--recipientsnoComma-separated workspace user IDs to notify
--recipient-emailsnoComma-separated additional recipient emails
--notify-emailnoFalseEmail recipients
--notify-pushnoFalseSend push notifications
--notify-in-appnoFalseShow in the in-app notification bell
--notify-webhooknoFalseSend to the configured webhook
--inactivenoFalseCreate the alert paused (default: active)
-o, --outputnotextOutput format
toothfairy create-alert

create-authorization​

Create a new authorization.

Options

FlagRequiredDefaultDescription
--namenoAuthorization name
--typenoAuthorization type
--confignoAuthorization configuration (JSON)
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy create-authorization

create-benchmark​

Create a new benchmark.

Options

FlagRequiredDefaultDescription
--namenoBenchmark name
--descriptionnoBenchmark description
--questionsnoQuestions JSON array
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy create-benchmark

create-channel​

Create a new communication channel.

Options

FlagRequiredDefaultDescription
--namenoChannel name
--channelnoChannel type (sms|whatsapp|email)
--providernoService provider
--senderidnoSender ID
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy create-channel

create-connection​

Create a new connection (hosting configuration).

Options

FlagRequiredDefaultDescription
--nameyesConnection name
--typeyesHosting type (azure_openai|aws|local|google|anthropic|together|tf|replicate|azure|openai|groq|ollama)
--endpointnoEndpoint URL
--model-namenoModel name
--base-modelnoBase model
--custom-modelnoIs custom model
--api-versionnoAPI version
--token-secretnoToken secret reference
--descriptionnoConnection description
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy create-connection

create-scheduled-job​

Create a new scheduled job (cron job).

Options

FlagRequiredDefaultDescription
--nameyesScheduled job name
--agent-idyesAgent ID
--custom-prompt-idnoCustom prompt ID
--descriptionnoJob description
--forced-promptnoForced prompt text
--frequencynoFrequency (MINUTES|HOURLY|DAILY|WEEKLY|MONTHLY|YEARLY|CUSTOM)
--intervalnoInterval
--cron-expressionnoCron expression (for CUSTOM frequency)
--day-of-weeknoDay of week (0-6)
--day-of-monthnoDay of month (1-31)
--hournoHour (0-23)
--minutenoMinute (0-59)
--timezonenoUTCTimezone (default: UTC)
--is-activenoTrueIs active
--start-datenoStart date (ISO format)
--end-datenoEnd date (ISO format)
--execution-confignoExecution config as JSON
--notification-confignoNotification config as JSON
--retry-confignoRetry config as JSON
--metadatanoMetadata as JSON
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy create-scheduled-job

create-trigger​

Create a new event-driven agent trigger.

Options

FlagRequiredDefaultDescription
--nameyesTrigger name
--agent-idyesAgent ID to invoke
--event-source-typeyesEvent source type
--custom-prompt-idnoCustom prompt ID
--descriptionnoTrigger description
--forced-promptnoForced prompt text
--event-confignoEvent config as JSON string
--is-activenoTrueArm the trigger (default)
--statusnoTrigger status (ARMED|PAUSED|...)
--metadatanoMetadata JSON string
-o, --outputnotextOutput format
toothfairy create-trigger

delete-agent​

Delete an agent.

Arguments

NameRequiredDescription
<agent_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy delete-agent <agent_id>

delete-agent-function​

Delete an agent function.

Arguments

NameRequiredDescription
<function_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy delete-agent-function <function_id>

delete-alert​

Delete an alert.

Arguments

NameRequiredDescription
<alert_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy delete-alert <alert_id>

delete-authorization​

Delete an authorization.

Arguments

NameRequiredDescription
<auth_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy delete-authorization <auth_id>

delete-benchmark​

Delete a benchmark.

Arguments

NameRequiredDescription
<benchmark_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy delete-benchmark <benchmark_id>

delete-channel​

Delete a channel.

Arguments

NameRequiredDescription
<channel_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy delete-channel <channel_id>

delete-connection​

Delete a connection.

Arguments

NameRequiredDescription
<connection_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy delete-connection <connection_id>

delete-scheduled-job​

Delete a scheduled job.

Arguments

NameRequiredDescription
<job_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy delete-scheduled-job <job_id>

delete-trigger​

Delete a trigger.

Arguments

NameRequiredDescription
<trigger_id>yes—

Options

FlagRequiredDefaultDescription
--confirmnoSkip confirmation prompt
-o, --outputnotextOutput format
toothfairy delete-trigger <trigger_id>

delete-voice​

Delete a custom voice.

Arguments

NameRequiredDescription
<voice_id>yes—
toothfairy delete-voice <voice_id>

download​

Download a file from ToothFairy workspace.

Options

FlagRequiredDefaultDescription
--filenameyesName of the file to download (from upload response)
--workspace-idnoWorkspace ID (uses config default if not specified)
--contextnopdfDownload context (default: pdf)
--output-dirno./downloadsOutput directory
--output-namenoOutput filename (defaults to original filename)
--output, -onotextOutput format
--verbose, -vnoShow detailed download information
toothfairy download

finetuning-cancel​

Cancel a fine-tuning job.

Arguments

NameRequiredDescription
<training_log_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy finetuning-cancel <training_log_id>

finetuning-generate-dataset​

Generate a fine-tuning dataset from workspace documents.

Options

FlagRequiredDefaultDescription
--nameyesHuman-readable name for the training job
--base-modelyesBase model canonical ID from finetuning-list-models
--training-typenoconversationalTrainingTraining method (conversationalTraining|generativeTraining|grpoTraining|ktoTraining|continuedPretraining)
--topicsnoComma-separated topic IDs to filter documents
--test-sizenoFraction of the dataset reserved as test split
--test-size-thresholdnoMinimum test split examples
--rlvrnoFalseRL with verifiable rewards — build a task manifest from rlTask documents (grpoTraining only)
--descriptionnoHuman-readable description
-o, --outputnotextOutput format
toothfairy finetuning-generate-dataset

finetuning-jobs​

List fine-tuning jobs.

Options

FlagRequiredDefaultDescription
--statusnoFilter by status (e.g. completed, training)
-o, --outputnotextOutput format
toothfairy finetuning-jobs

finetuning-list-models​

List trainable models for fine-tuning.

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy finetuning-list-models

finetuning-serve​

Choose which saved artifact answers requests (final adapter or a checkpoint).

Arguments

NameRequiredDescription
<training_log_id>yes—

Options

FlagRequiredDefaultDescription
--modenoon-demandServing mode
--schedulenoSchedule object as JSON (required for scheduled mode)
--adapternolora_adapter | final | checkpoint-<step> (serves that saved checkpoint)
-o, --outputnotextOutput format
toothfairy finetuning-serve <training_log_id>

finetuning-serving​

Show the serving config, the artifact being served and all servable checkpoints.

Arguments

NameRequiredDescription
<training_log_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy finetuning-serving <training_log_id>

finetuning-serving-power​

Hold a fine-tuned model warm, or release the hold.

Arguments

NameRequiredDescription
<training_log_id>yes—
<state>yes—

Options

FlagRequiredDefaultDescription
--hoursnoHours to hold warm (on only, default 1)
-o, --outputnotextOutput format
toothfairy finetuning-serving-power <training_log_id> <state>

finetuning-start​

Start a fine-tuning training job (job must be in datasetReady status).

Arguments

NameRequiredDescription
<training_log_id>yes—

Options

FlagRequiredDefaultDescription
--confignoTraining config overrides as a JSON string; the object is passed as the config body, e.g. a JSON object with an 'rl' key holding a list of pip packages
-o, --outputnotextOutput format
toothfairy finetuning-start <training_log_id>

finetuning-status​

Get detailed status of a fine-tuning job.

Arguments

NameRequiredDescription
<training_log_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy finetuning-status <training_log_id>

generate-image​

Generate images from text (or image-to-image with --base-image).

Options

FlagRequiredDefaultDescription
--promptyesWhat to generate
--modelnomystica_sdImage model
--num-outputsnoNumber of image variations
--base-imagenoSource image (workspace S3 key) for image-to-image
--aspectnoAspect ratio
--prompt-influencenoHow strictly the prompt is followed vs the base image
--chat-idnoChat context for attribution
--asyncnoFalseReturn a task ID immediately (poll with get-media-task)
-o, --outputnotextOutput format
toothfairy generate-image

generate-video​

Generate video from text or animate a still frame (--base-image).

Options

FlagRequiredDefaultDescription
--promptyesMotion/scene description
--modelnosorcerer_motionVideo model
--num-outputsnoNumber of video variations
--base-imagenoStill frame (workspace S3 key) to animate
--aspectnoAspect ratio
--lengthnoClip duration in seconds
--prompt-influencenoHow strictly the prompt is followed vs the base image
--loopnoFalseMake the clip loop seamlessly
--chat-idnoChat context for attribution
--asyncnoFalseReturn a task ID immediately (poll with get-media-task)
-o, --outputnotextOutput format
toothfairy generate-video

get-agent​

Get details of a specific agent.

Arguments

NameRequiredDescription
<agent_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-agent <agent_id>

get-agent-function​

Get details of a specific agent function.

Arguments

NameRequiredDescription
<function_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-agent-function <function_id>

get-alert​

Get a specific alert by ID.

Arguments

NameRequiredDescription
<alert_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy get-alert <alert_id>

get-authorization​

Get details of a specific authorization.

Arguments

NameRequiredDescription
<auth_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-authorization <auth_id>

get-benchmark​

Get details of a specific benchmark.

Arguments

NameRequiredDescription
<benchmark_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-benchmark <benchmark_id>

get-benchmark-run​

Get a benchmark run by ID with score and metadata.

Arguments

NameRequiredDescription
<run_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-benchmark-run <run_id>

get-channel​

Get details of a specific channel.

Arguments

NameRequiredDescription
<channel_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-channel <channel_id>

get-charting-settings​

Get charting settings for the workspace.

Arguments

NameRequiredDescription
<settings_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-charting-settings <settings_id>

get-connection​

Get details of a specific connection (hosting configuration).

Arguments

NameRequiredDescription
<connection_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-connection <connection_id>

get-dictionary​

Get details of a specific dictionary entry.

Arguments

NameRequiredDescription
<dictionary_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-dictionary <dictionary_id>

get-embedding​

Get details of a specific embedding.

Arguments

NameRequiredDescription
<embedding_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-embedding <embedding_id>

get-embeddings-settings​

Get embeddings settings for the workspace.

Arguments

NameRequiredDescription
<settings_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-embeddings-settings <settings_id>

get-media-task​

Get the status of an asynchronous media generation task.

Arguments

NameRequiredDescription
<task_id>yes—

Options

FlagRequiredDefaultDescription
--kindnoaudioTask kind
-o, --outputnotextOutput format
toothfairy get-media-task <task_id>

get-scheduled-job​

Get details of a specific scheduled job.

Arguments

NameRequiredDescription
<job_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-scheduled-job <job_id>

get-scheduled-jobs-by-status​

Get scheduled jobs by status.

Arguments

NameRequiredDescription
<status>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-scheduled-jobs-by-status <status>

get-stream​

Get details of a specific stream.

Arguments

NameRequiredDescription
<stream_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy get-stream <stream_id>

get-trigger​

Get a specific trigger by ID.

Arguments

NameRequiredDescription
<trigger_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy get-trigger <trigger_id>

get-voice​

Get details of a specific voice.

Arguments

NameRequiredDescription
<voice_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy get-voice <voice_id>

help-guide​

Show detailed help and usage examples.

toothfairy help-guide

list-agent-functions​

List all agent functions.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-agent-functions

list-agents​

List all agents.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-agents

list-alerts​

List all alerts in the workspace.

Options

FlagRequiredDefaultDescription
--limitnoMaximum number of alerts to return
--offsetnoNumber of alerts to skip
-o, --outputnotextOutput format
toothfairy list-alerts

list-authorizations​

List all authorizations.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-authorizations

list-benchmark-runs​

List benchmark runs for the workspace.

Options

FlagRequiredDefaultDescription
--agent-idnoFilter by agent ID
--benchmark-idnoFilter by benchmark ID
--typenoFilter by type
--statusnoFilter by status
--limitno20Maximum runs to return
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-benchmark-runs

list-benchmarks​

List all benchmarks.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-benchmarks

list-channels​

List all channels.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-channels

list-connections​

List all connections (hosting configurations).

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-connections

list-dictionaries​

List all dictionary entries.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-dictionaries

list-scheduled-jobs​

List all scheduled jobs.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-scheduled-jobs

list-streams​

List all streams.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy list-streams

list-triggers​

List all triggers in the workspace.

Options

FlagRequiredDefaultDescription
--limitnoMaximum number of triggers to return
--offsetnoNumber of triggers to skip
-o, --outputnotextOutput format
toothfairy list-triggers

list-voices​

List available TTS voices (built-in + workspace clones).

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy list-voices

pause-alert​

Pause an alert (stop evaluating and notifying).

Arguments

NameRequiredDescription
<alert_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy pause-alert <alert_id>

pause-scheduled-job​

Pause a scheduled job.

Arguments

NameRequiredDescription
<job_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy pause-scheduled-job <job_id>

pause-trigger​

Pause (disarm) a trigger.

Arguments

NameRequiredDescription
<trigger_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy pause-trigger <trigger_id>

predict​

Generate streaming AI predictions (OpenAI-compatible) from a ToothFairyAI model.

Streams the model response in real time, token-by-token, using an OpenAI-compatible chat completions surface.

Arguments

NameRequiredDescription
<message>yes—

Options

FlagRequiredDefaultDescription
--modelyesToothFairyAI model alias (e.g. sorcerer, mystica, z/glm-5p2, kimi-k2p6)
--systemnoOptional system prompt
--message-rolenouserRole of the message argument (default: user)
--max-tokensnoMaximum tokens to generate
--temperaturenoSampling temperature (0-2)
--top-pnoNucleus sampling (0-1)
--top-knoTop-K sampling
--repetition-penaltynoRepetition penalty (default 1.0)
--frequency-penaltynoFrequency penalty (-2 to 2)
--presence-penaltynoPresence penalty (-2 to 2)
--stopnoStop sequence(s), comma-separated
--seednoDeterministic sampling seed
--reasoning-modenoReasoning mode
--reasoning-budgetnoMax tokens for thinking
--reasoning-effortnoReasoning effort
--response-formatnoOpenAI response_format as JSON string
--verbositynoOutput verbosity
--usernoEnd-user identifier for tracking
--regionnoProvider pool region
--toolsnoOpenAI-format tools JSON string
--tool-choicenoauto|none|required or specific tool JSON
--workspace-idnoOverride workspace id (deprecated; resolved from api key by default)
--output, -onotextOutput format
toothfairy predict <message>

resume-alert​

Resume a paused alert.

Arguments

NameRequiredDescription
<alert_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy resume-alert <alert_id>

resume-scheduled-job​

Resume a paused scheduled job.

Arguments

NameRequiredDescription
<job_id>yes—

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy resume-scheduled-job <job_id>

resume-trigger​

Resume (arm) a paused trigger.

Arguments

NameRequiredDescription
<trigger_id>yes—

Options

FlagRequiredDefaultDescription
-o, --outputnotextOutput format
toothfairy resume-trigger <trigger_id>

run-benchmark​

Start a benchmark run to evaluate an agent.

Arguments

NameRequiredDescription
<benchmark_id>yes—
<agent_id>yes—

Options

FlagRequiredDefaultDescription
--typenobmRun type (default: bm)
--modenoABM mode (only for type=abm)
--namenoOptional name for the run
--passing-scorenoMinimum score to pass (0-1)
--num-questionsnoNumber of questions to use
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy run-benchmark <benchmark_id> <agent_id>

Search for documents in the knowledge hub.

Arguments

NameRequiredDescription
<query>yes—

Options

FlagRequiredDefaultDescription
--top-k, -kno10Number of documents to retrieve (1-50)
--statusnoFilter by document status
--document-idnoSearch within specific document ID
--topicsnoComma-separated topic IDs to filter by
--output, -onotextOutput format
--verbose, -vnoShow detailed search information
toothfairy search <query>

send​

Send a message to a ToothFairyAI agent.

Arguments

NameRequiredDescription
<message>yes—

Options

FlagRequiredDefaultDescription
--agent-idyesAgent ID to send message to
--chat-idnoExisting chat ID to continue conversation
--phone-numbernoPhone number for SMS channel
--customer-idnoCustomer ID
--provider-idnoSMS provider ID
--customer-infonoCustomer info as JSON string
--output, -onotextOutput format
--verbose, -vnoShow detailed response information
toothfairy send <message>

send-stream​

Send a message to a ToothFairyAI agent with real-time streaming response.

This command shows the agent's response as it's being generated in real-time, providing live updates on the agent's processing status and streaming text output.

STREAMING BEHAVIOR EXPLAINED:

🔄 STATUS UPDATES: The agent goes through several processing phases:

• 'connected': Connection established with streaming server • 'init': Agent initialization started • 'initial_setup_completed': Basic setup and context loading finished • 'tools_processing_completed': Any required tools/functions processed • 'replying': Agent begins generating the actual response (text starts streaming) • 'updating_memory': Agent updates conversation memory • 'memory_updated': Memory update completed • 'complete': Stream finished successfully

📝 TEXT STREAMING: Once the agent reaches 'replying' status, you'll see the response text being built progressively, word by word, just like ChatGPT or similar AI assistants.

💡 TIP: Use --show-progress to see detailed status updates, or --verbose for full debug info.

Arguments

NameRequiredDescription
<message>yes—

Options

FlagRequiredDefaultDescription
--agent-idyesAgent ID to send message to
--chat-idnoExisting chat ID to continue conversation
--phone-numbernoPhone number for SMS channel
--customer-idnoCustomer ID
--provider-idnoSMS provider ID
--customer-infonoCustomer info as JSON string
--output, -onotextOutput format
--verbose, -vnoShow detailed streaming information
--show-progressnoShow agent processing status updates
toothfairy send-stream <message>

update-agent​

Update an existing agent.

Arguments

NameRequiredDescription
<agent_id>yes—

Options

FlagRequiredDefaultDescription
--labelnoAgent label
--descriptionnoAgent description
--emojinoAgent emoji
--modenoAgent mode
--agent-typenoAgent type
--llm-providernoLLM provider
--llm-base-modelnoLLM base model
--reasoning-modenoReasoning mode
--reasoning-effortnoReasoning effort
--fn-reasoning-effortnoFunction reasoning effort
--reasoning-budgetnoReasoning budget
--voice-namenoVoice for TTS (all modes) — can be a cloned voice_id from clone-voice
--voice-file-keynoS3 key of the reference clip used for the cloned voice
--audios-generation-tts-modelnoVoice-over provider for audio generation (cartesia for cloned voices)
--audios-generation-voice-namenoVoice-over voice for audio generation (can be a cloned voice_id)
--audios-generation-speech-modenoSpeech mode for audio generation (audible|direct)
--voice-sensitivitynoVoice sensitivity
--stt-modelnoSpeech-to-text model
--tts-modelnoText-to-speech model
--llm-voice-modelnoLLM voice model
--default-voice-languagenoDefault voice language
--departmentnoDepartment
--temperaturenoTemperature
--max-tokensnoMax tokens
--top-knoTop K
--doc-top-knoDoc top K
--max-historynoMax history
--allow-internet-searchnoAllow internet search
--allow-images-uploadnoAllow image uploads
--allow-videos-uploadnoAllow video uploads
--allow-audios-uploadnoAllow audio uploads
--allow-docs-uploadnoAllow document uploads
--allow-images-generationnoAllow image generation
--agentic-ragnoEnable agentic RAG
--re-ranknoEnable re-ranking
--rag-search-strategynoRAG search strategy
--min-retrieval-scorenoMinimum retrieval score
--has-mathnoEnable math capabilities
--has-codenoEnable code capabilities
--has-computernoEnable computer use
--has-nernoEnable NER
--canvas-enablednoEnable canvas
--enable-json-outputnoEnable JSON output
--force-json-outputnoForce JSON output
--hide-reasoningnoHide reasoning
--show-citationsnoShow citations
--ephemeral-agentnoMark as ephemeral
--parent-agent-idnoParent agent ID
--agents-poolnoComma-separated agent IDs
--mcpsnoComma-separated MCP IDs
--max-planning-stepsnoMax planning steps
--max-browser-stepsnoMax browser steps
--custom-code-execution-environmentsnoComma-separated custom code execution environment IDs
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-agent <agent_id>

update-agent-function​

Update an existing agent function.

Arguments

NameRequiredDescription
<function_id>yes—

Options

FlagRequiredDefaultDescription
--namenoFunction name
--descriptionnoFunction description
--urlnoFunction URL
--request-typenoRequest type
--authorisation-typenoAuthorisation type
--authorisation-keynoAuthorisation key
--authorisation-idnoAuthorisation ID
--parametersnoParameters as JSON
--modelnoModel to use
--scopenoFunction scope
--is-agent-skillnoIs agent skill
--chat-actionnoChat action
--hand-off-agentnoHand-off agent ID
--hand-off-to-original-agent-on-completionnoHand off to original agent on completion
--hand-off-to-original-agent-on-failurenoHand off to original agent on failure
--chat-scriptnoChat script
--agent-skill-scriptnoAgent skill script
--db-connection-idnoDatabase connection ID
--graphql-querynoGraphQL query
--graphql-mutationnoGraphQL mutation
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-agent-function <function_id>

update-alert​

Update an existing alert.

Arguments

NameRequiredDescription
<alert_id>yes—

Options

FlagRequiredDefaultDescription
--namenoAlert name
--descriptionnoAlert description
--trigger-typenoTrigger type
--severitynoSeverity
--cooldown-minutesnoMinimum minutes between repeated notifications
--agent-idnoAgent ID to attach the alert to
--is-activenoActivate (true) or pause (false)
--conditionsnoConditions as JSON array string
--datanoAdditional fields to update as a JSON object (recipients, recipientEmails, notifyEmail, ...)
-o, --outputnotextOutput format
toothfairy update-alert <alert_id>

update-authorization​

Update an existing authorization.

Options

FlagRequiredDefaultDescription
--idnoAuthorization ID
--namenoAuthorization name
--typenoAuthorization type
--confignoAuthorization configuration (JSON)
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-authorization

update-benchmark​

Update an existing benchmark.

Options

FlagRequiredDefaultDescription
--idnoBenchmark ID
--namenoBenchmark name
--descriptionnoBenchmark description
--questionsnoQuestions JSON array
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-benchmark

update-channel​

Update an existing channel.

Options

FlagRequiredDefaultDescription
--idnoChannel ID
--namenoChannel name
--channelnoChannel type
--providernoService provider
--senderidnoSender ID
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-channel

update-charting-settings​

Update charting settings for the workspace.

Arguments

NameRequiredDescription
<settings_id>yes—

Options

FlagRequiredDefaultDescription
--confignoSettings configuration (JSON)
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-charting-settings <settings_id>

update-connection​

Update an existing connection (hosting configuration).

Arguments

NameRequiredDescription
<connection_id>yes—

Options

FlagRequiredDefaultDescription
--namenoConnection name
--typenoHosting type
--endpointnoEndpoint URL
--model-namenoModel name
--base-modelnoBase model
--custom-modelnoIs custom model
--api-versionnoAPI version
--token-secretnoToken secret reference
--descriptionnoConnection description
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-connection <connection_id>

update-embeddings-settings​

Update embeddings settings for the workspace.

Arguments

NameRequiredDescription
<settings_id>yes—

Options

FlagRequiredDefaultDescription
--confignoSettings configuration (JSON)
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-embeddings-settings <settings_id>

update-scheduled-job​

Update an existing scheduled job.

Arguments

NameRequiredDescription
<job_id>yes—

Options

FlagRequiredDefaultDescription
--namenoJob name
--descriptionnoJob description
--forced-promptnoForced prompt text
--frequencynoFrequency
--intervalnoInterval
--cron-expressionnoCron expression
--hournoHour
--minutenoMinute
--timezonenoTimezone
--is-activenoIs active
--output, -onotextOutput format
--verbose, -vnoShow detailed information
toothfairy update-scheduled-job <job_id>

update-trigger​

Update an existing trigger.

Arguments

NameRequiredDescription
<trigger_id>yes—

Options

FlagRequiredDefaultDescription
--namenoTrigger name
--agent-idnoAgent ID
--descriptionnoDescription
--forced-promptnoForced prompt text
--is-activenoArm/disarm
--statusnoStatus (ARMED|PAUSED|...)
--metadatanoMetadata JSON string
-o, --outputnotextOutput format
toothfairy update-trigger <trigger_id>

upload​

Upload a file to ToothFairy workspace.

Arguments

NameRequiredDescription
<file_path>yes—

Options

FlagRequiredDefaultDescription
--import-typenoImport type (optional, auto-detected from extension)
--content-typenoContent type (optional, auto-detected from extension)
--output, -onotextOutput format
--verbose, -vnoShow detailed upload information
toothfairy upload <file_path>