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.

70 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.
config-showShow current configuration.
configureConfigure ToothFairy CLI credentials and settings.
create-agentCreate a new agent.
create-agent-functionCreate a new agent function.
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-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.
downloadDownload a file from ToothFairy workspace.
get-agentGet details of a specific agent.
get-agent-functionGet details of a specific agent function.
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-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.
help-guideShow detailed help and usage examples.
list-agent-functionsList all agent functions.
list-agentsList all agents.
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.
pause-scheduled-jobPause a scheduled job.
pause-triggerPause (disarm) a trigger.
predictGenerate streaming AI predictions (OpenAI-compatible) from a ToothFairyAI model.
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-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, -vnoFalseShow detailed information
toothfairy billing-month-costs <month> <year>

cancel-benchmark-run

Cancel a running benchmark.

Arguments

NameRequiredDescription
<run_id>yes

Options

FlagRequiredDefaultDescription
--confirmnoFalseSkip confirmation prompt
--output, -onotextOutput format
--verbose, -vnoFalseShow 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

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-keyyesSentinel.UNSETAPI key
--workspace-idyesSentinel.UNSETWorkspace ID
--config-pathnoSentinel.UNSETPath to save config file
toothfairy configure

create-agent

Create a new agent.

Options

FlagRequiredDefaultDescription
--labelnoSentinel.UNSETAgent label
--descriptionnoSentinel.UNSETAgent description
--emojinoSentinel.UNSETAgent emoji
--modenoSentinel.UNSETAgent mode
--agent-typenoSentinel.UNSETAgent type (Chatbot
--llm-providernoSentinel.UNSETLLM provider
--llm-base-modelnoSentinel.UNSETLLM base model
--reasoning-modenoSentinel.UNSETReasoning mode (auto
--reasoning-effortnoSentinel.UNSETReasoning effort (none
--fn-reasoning-effortnoSentinel.UNSETFunction reasoning effort
--reasoning-budgetnoSentinel.UNSETReasoning budget
--voice-namenoSentinel.UNSETVoice name for voice mode
--voice-sensitivitynoSentinel.UNSETVoice sensitivity
--stt-modelnoSentinel.UNSETSpeech-to-text model
--tts-modelnoSentinel.UNSETText-to-speech model
--llm-voice-modelnoSentinel.UNSETLLM voice model
--default-voice-languagenoSentinel.UNSETDefault voice language
--departmentnoSentinel.UNSETDepartment
--temperaturenoSentinel.UNSETTemperature (0.0-2.0)
--max-tokensnoSentinel.UNSETMax tokens
--top-knoSentinel.UNSETTop K for retrieval
--doc-top-knoSentinel.UNSETDoc top K
--max-historynoSentinel.UNSETMax conversation history
--allow-internet-searchnoFalseAllow internet search
--allow-images-uploadnoFalseAllow image uploads
--allow-videos-uploadnoFalseAllow video uploads
--allow-audios-uploadnoFalseAllow audio uploads
--allow-docs-uploadnoFalseAllow document uploads
--allow-images-generationnoFalseAllow image generation
--agentic-ragnoFalseEnable agentic RAG
--re-ranknoFalseEnable re-ranking
--rag-search-strategynoSentinel.UNSETRAG search strategy
--min-retrieval-scorenoSentinel.UNSETMinimum retrieval score
--has-mathnoFalseEnable math capabilities
--has-codenoFalseEnable code capabilities
--has-computernoFalseEnable computer use capabilities
--has-nernoFalseEnable NER capabilities
--canvas-enablednoFalseEnable canvas
--enable-json-outputnoFalseEnable JSON output
--force-json-outputnoFalseForce JSON output
--hide-reasoningnoFalseHide reasoning from output
--show-citationsnoFalseShow citations
--ephemeral-agentnoFalseMark as ephemeral agent
--parent-agent-idnoSentinel.UNSETParent agent ID
--agents-poolnoSentinel.UNSETComma-separated agent IDs for agents pool
--mcpsnoSentinel.UNSETComma-separated MCP IDs
--max-planning-stepsnoSentinel.UNSETMax planning steps
--max-browser-stepsnoSentinel.UNSETMax browser steps
--custom-code-execution-environmentsnoSentinel.UNSETComma-separated custom code execution environment IDs
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy create-agent

create-agent-function

Create a new agent function.

Options

FlagRequiredDefaultDescription
--nameyesSentinel.UNSETFunction name
--descriptionyesSentinel.UNSETFunction description
--urlnoSentinel.UNSETFunction URL
--request-typenoSentinel.UNSETRequest type
--authorisation-typenoSentinel.UNSETAuthorisation type
--authorisation-keynoSentinel.UNSETAuthorisation key
--authorisation-idnoSentinel.UNSETAuthorisation ID
--parametersnoSentinel.UNSETParameters as JSON
--modelnoSentinel.UNSETModel to use
--scopenoSentinel.UNSETFunction scope
--json-path-extractornoSentinel.UNSETJSON path extractor
--headersnoSentinel.UNSETHeaders as JSON
--static-argsnoSentinel.UNSETStatic args as JSON
--custom-execution-codenoSentinel.UNSETCustom execution code
--is-mcp-servernoFalseIs MCP server
--is-callback-fnnoFalseIs callback function
--is-database-scriptnoFalseIs database script
--is-html-fnnoFalseIs HTML function
--is-chat-fnnoFalseIs chat function
--is-hand-off-fnnoFalseIs hand-off function
--is-code-templatenoFalseIs code template
--is-agent-skillnoFalseIs agent skill
--code-execution-environment-idnoSentinel.UNSETCode execution environment ID
--on-fn-callnoSentinel.UNSETOn function call config as JSON
--hand-off-agentnoSentinel.UNSETHand-off agent ID
--hand-off-to-original-agent-on-completionnoFalseHand off to original agent on completion
--hand-off-to-original-agent-on-failurenoFalseHand off to original agent on failure
--hand-off-agent-on-completionnoSentinel.UNSETHand-off agent ID on completion
--hand-off-agent-on-failurenoSentinel.UNSETHand-off agent ID on failure
--agent-skill-scriptnoSentinel.UNSETAgent skill script
--chat-scriptnoSentinel.UNSETChat script
--chat-actionnoSentinel.UNSETChat action (suggestion
--html-urlnoSentinel.UNSETHTML URL
--html-scriptnoSentinel.UNSETHTML script
--is-html-redirect-fnnoFalseIs HTML redirect function
--html-form-on-successful-submit-messagenoSentinel.UNSETHTML form success message
--html-form-on-failed-submit-messagenoSentinel.UNSETHTML form failure message
--db-schema-metadatanoSentinel.UNSETDB schema metadata as JSON
--pre-execution-scriptnoSentinel.UNSETPre-execution script
--post-execution-scriptnoSentinel.UNSETPost-execution script
--db-scriptnoSentinel.UNSETDatabase script
--db-connection-idnoSentinel.UNSETDatabase connection ID
--pre-execution-fn-idnoSentinel.UNSETPre-execution function ID
--pre-execution-mappingnoSentinel.UNSETPre-execution mapping as JSON
--oauth-connection-idnoSentinel.UNSETOAuth connection ID
--handed-off-to-human-on-callnoFalseHanded off to human on call
--graphql-querynoSentinel.UNSETGraphQL query
--graphql-mutationnoSentinel.UNSETGraphQL mutation
--graphql-operation-namenoSentinel.UNSETGraphQL operation name
--users-to-hand-off-tonoSentinel.UNSETComma-separated user IDs to hand off to
--depends-on-before-executionnoSentinel.UNSETComma-separated function IDs to depend on before execution
--depends-on-after-executionnoSentinel.UNSETComma-separated function IDs to depend on after execution
--is-globalnoFalseIs global function
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy create-agent-function

create-authorization

Create a new authorization.

Options

FlagRequiredDefaultDescription
--namenoSentinel.UNSETAuthorization name
--typenoSentinel.UNSETAuthorization type
--confignoSentinel.UNSETAuthorization configuration (JSON)
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy create-authorization

create-benchmark

Create a new benchmark.

Options

FlagRequiredDefaultDescription
--namenoSentinel.UNSETBenchmark name
--descriptionnoSentinel.UNSETBenchmark description
--questionsnoSentinel.UNSETQuestions JSON array
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy create-benchmark

create-channel

Create a new communication channel.

Options

FlagRequiredDefaultDescription
--namenoSentinel.UNSETChannel name
--channelnoSentinel.UNSETChannel type (sms
--providernoSentinel.UNSETService provider
--senderidnoSentinel.UNSETSender ID
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy create-channel

create-connection

Create a new connection (hosting configuration).

Options

FlagRequiredDefaultDescription
--nameyesSentinel.UNSETConnection name
--typeyesSentinel.UNSETHosting type (azure_openai
--endpointnoSentinel.UNSETEndpoint URL
--model-namenoSentinel.UNSETModel name
--base-modelnoSentinel.UNSETBase model
--custom-modelnoFalseIs custom model
--api-versionnoSentinel.UNSETAPI version
--token-secretnoSentinel.UNSETToken secret reference
--descriptionnoSentinel.UNSETConnection description
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy create-connection

create-scheduled-job

Create a new scheduled job (cron job).

Options

FlagRequiredDefaultDescription
--nameyesSentinel.UNSETScheduled job name
--agent-idyesSentinel.UNSETAgent ID
--custom-prompt-idnoSentinel.UNSETCustom prompt ID
--descriptionnoSentinel.UNSETJob description
--forced-promptnoSentinel.UNSETForced prompt text
--frequencynoSentinel.UNSETFrequency (MINUTES
--intervalnoSentinel.UNSETInterval
--cron-expressionnoSentinel.UNSETCron expression (for CUSTOM frequency)
--day-of-weeknoSentinel.UNSETDay of week (0-6)
--day-of-monthnoSentinel.UNSETDay of month (1-31)
--hournoSentinel.UNSETHour (0-23)
--minutenoSentinel.UNSETMinute (0-59)
--timezonenoUTCTimezone (default: UTC)
--is-activenoTrueIs active
--start-datenoSentinel.UNSETStart date (ISO format)
--end-datenoSentinel.UNSETEnd date (ISO format)
--execution-confignoSentinel.UNSETExecution config as JSON
--notification-confignoSentinel.UNSETNotification config as JSON
--retry-confignoSentinel.UNSETRetry config as JSON
--metadatanoSentinel.UNSETMetadata as JSON
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy create-scheduled-job

create-trigger

Create a new event-driven agent trigger.

Options

FlagRequiredDefaultDescription
--nameyesSentinel.UNSETTrigger name
--agent-idyesSentinel.UNSETAgent ID to invoke
--event-source-typeyesSentinel.UNSETEvent source type
--custom-prompt-idnoSentinel.UNSETCustom prompt ID
--descriptionnoSentinel.UNSETTrigger description
--forced-promptnoSentinel.UNSETForced prompt text
--event-confignoSentinel.UNSETEvent config as JSON string
--is-activenoTrueArm the trigger (default)
--statusnoSentinel.UNSETTrigger status (ARMED
--metadatanoSentinel.UNSETMetadata JSON string
-o, --outputnotextOutput format
toothfairy create-trigger

delete-agent

Delete an agent.

Arguments

NameRequiredDescription
<agent_id>yes

Options

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

delete-agent-function

Delete an agent function.

Arguments

NameRequiredDescription
<function_id>yes

Options

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

delete-authorization

Delete an authorization.

Arguments

NameRequiredDescription
<auth_id>yes

Options

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

delete-benchmark

Delete a benchmark.

Arguments

NameRequiredDescription
<benchmark_id>yes

Options

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

delete-channel

Delete a channel.

Arguments

NameRequiredDescription
<channel_id>yes

Options

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

delete-connection

Delete a connection.

Arguments

NameRequiredDescription
<connection_id>yes

Options

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

delete-scheduled-job

Delete a scheduled job.

Arguments

NameRequiredDescription
<job_id>yes

Options

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

delete-trigger

Delete a trigger.

Arguments

NameRequiredDescription
<trigger_id>yes

Options

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

download

Download a file from ToothFairy workspace.

Options

FlagRequiredDefaultDescription
--filenameyesSentinel.UNSETName of the file to download (from upload response)
--workspace-idnoSentinel.UNSETWorkspace ID (uses config default if not specified)
--contextnopdfDownload context (default: pdf)
--output-dirno./downloadsOutput directory
--output-namenoSentinel.UNSETOutput filename (defaults to original filename)
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed download information
toothfairy download

get-agent

Get details of a specific agent.

Arguments

NameRequiredDescription
<agent_id>yes

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoFalseShow 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, -vnoFalseShow detailed information
toothfairy get-agent-function <function_id>

get-authorization

Get details of a specific authorization.

Arguments

NameRequiredDescription
<auth_id>yes

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoFalseShow 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, -vnoFalseShow 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, -vnoFalseShow 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, -vnoFalseShow 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, -vnoFalseShow 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, -vnoFalseShow 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, -vnoFalseShow 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, -vnoFalseShow 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, -vnoFalseShow detailed information
toothfairy get-embeddings-settings <settings_id>

get-scheduled-job

Get details of a specific scheduled job.

Arguments

NameRequiredDescription
<job_id>yes

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoFalseShow 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, -vnoFalseShow 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, -vnoFalseShow 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>

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, -vnoFalseShow detailed information
toothfairy list-agent-functions

list-agents

List all agents.

Options

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

list-authorizations

List all authorizations.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoFalseShow 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, -vnoFalseShow detailed information
toothfairy list-benchmark-runs

list-benchmarks

List all benchmarks.

Options

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

list-channels

List all channels.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoFalseShow 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, -vnoFalseShow detailed information
toothfairy list-connections

list-dictionaries

List all dictionary entries.

Options

FlagRequiredDefaultDescription
--limitno50Maximum number to return
--offsetno0Number to skip
--output, -onotextOutput format
--verbose, -vnoFalseShow 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, -vnoFalseShow detailed information
toothfairy list-scheduled-jobs

list-streams

List all streams.

Options

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

list-triggers

List all triggers in the workspace.

Options

FlagRequiredDefaultDescription
--limitnoSentinel.UNSETMaximum number of triggers to return
--offsetnoSentinel.UNSETNumber of triggers to skip
-o, --outputnotextOutput format
toothfairy list-triggers

pause-scheduled-job

Pause a scheduled job.

Arguments

NameRequiredDescription
<job_id>yes

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoFalseShow 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
--modelyesSentinel.UNSETToothFairyAI 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
--workspace-idnoOverride workspace id (deprecated; resolved from api key by default)
--output, -onotextOutput format
toothfairy predict <message>

resume-scheduled-job

Resume a paused scheduled job.

Arguments

NameRequiredDescription
<job_id>yes

Options

FlagRequiredDefaultDescription
--output, -onotextOutput format
--verbose, -vnoFalseShow 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, -vnoFalseShow 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)
--statusnoSentinel.UNSETFilter by document status
--document-idnoSentinel.UNSETSearch within specific document ID
--topicsnoSentinel.UNSETComma-separated topic IDs to filter by
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed search information
toothfairy search <query>

send

Send a message to a ToothFairyAI agent.

Arguments

NameRequiredDescription
<message>yes

Options

FlagRequiredDefaultDescription
--agent-idyesSentinel.UNSETAgent ID to send message to
--chat-idnoSentinel.UNSETExisting chat ID to continue conversation
--phone-numbernoSentinel.UNSETPhone number for SMS channel
--customer-idnoSentinel.UNSETCustomer ID
--provider-idnoSentinel.UNSETSMS provider ID
--customer-infonoSentinel.UNSETCustomer info as JSON string
--output, -onotextOutput format
--verbose, -vnoFalseShow 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-idyesSentinel.UNSETAgent ID to send message to
--chat-idnoSentinel.UNSETExisting chat ID to continue conversation
--phone-numbernoSentinel.UNSETPhone number for SMS channel
--customer-idnoSentinel.UNSETCustomer ID
--provider-idnoSentinel.UNSETSMS provider ID
--customer-infonoSentinel.UNSETCustomer info as JSON string
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed streaming information
--show-progressnoFalseShow agent processing status updates
toothfairy send-stream <message>

update-agent

Update an existing agent.

Arguments

NameRequiredDescription
<agent_id>yes

Options

FlagRequiredDefaultDescription
--labelnoSentinel.UNSETAgent label
--descriptionnoSentinel.UNSETAgent description
--emojinoSentinel.UNSETAgent emoji
--modenoSentinel.UNSETAgent mode
--agent-typenoSentinel.UNSETAgent type
--llm-providernoSentinel.UNSETLLM provider
--llm-base-modelnoSentinel.UNSETLLM base model
--reasoning-modenoSentinel.UNSETReasoning mode
--reasoning-effortnoSentinel.UNSETReasoning effort
--fn-reasoning-effortnoSentinel.UNSETFunction reasoning effort
--reasoning-budgetnoSentinel.UNSETReasoning budget
--voice-namenoSentinel.UNSETVoice name for voice mode
--voice-sensitivitynoSentinel.UNSETVoice sensitivity
--stt-modelnoSentinel.UNSETSpeech-to-text model
--tts-modelnoSentinel.UNSETText-to-speech model
--llm-voice-modelnoSentinel.UNSETLLM voice model
--default-voice-languagenoSentinel.UNSETDefault voice language
--departmentnoSentinel.UNSETDepartment
--temperaturenoSentinel.UNSETTemperature
--max-tokensnoSentinel.UNSETMax tokens
--top-knoSentinel.UNSETTop K
--doc-top-knoSentinel.UNSETDoc top K
--max-historynoSentinel.UNSETMax history
--allow-internet-searchnoFalseAllow internet search
--allow-images-uploadnoFalseAllow image uploads
--allow-videos-uploadnoFalseAllow video uploads
--allow-audios-uploadnoFalseAllow audio uploads
--allow-docs-uploadnoFalseAllow document uploads
--allow-images-generationnoFalseAllow image generation
--agentic-ragnoFalseEnable agentic RAG
--re-ranknoFalseEnable re-ranking
--rag-search-strategynoSentinel.UNSETRAG search strategy
--min-retrieval-scorenoSentinel.UNSETMinimum retrieval score
--has-mathnoFalseEnable math capabilities
--has-codenoFalseEnable code capabilities
--has-computernoFalseEnable computer use
--has-nernoFalseEnable NER
--canvas-enablednoFalseEnable canvas
--enable-json-outputnoFalseEnable JSON output
--force-json-outputnoFalseForce JSON output
--hide-reasoningnoFalseHide reasoning
--show-citationsnoFalseShow citations
--ephemeral-agentnoFalseMark as ephemeral
--parent-agent-idnoSentinel.UNSETParent agent ID
--agents-poolnoSentinel.UNSETComma-separated agent IDs
--mcpsnoSentinel.UNSETComma-separated MCP IDs
--max-planning-stepsnoSentinel.UNSETMax planning steps
--max-browser-stepsnoSentinel.UNSETMax browser steps
--custom-code-execution-environmentsnoSentinel.UNSETComma-separated custom code execution environment IDs
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-agent <agent_id>

update-agent-function

Update an existing agent function.

Arguments

NameRequiredDescription
<function_id>yes

Options

FlagRequiredDefaultDescription
--namenoSentinel.UNSETFunction name
--descriptionnoSentinel.UNSETFunction description
--urlnoSentinel.UNSETFunction URL
--request-typenoSentinel.UNSETRequest type
--authorisation-typenoSentinel.UNSETAuthorisation type
--authorisation-keynoSentinel.UNSETAuthorisation key
--authorisation-idnoSentinel.UNSETAuthorisation ID
--parametersnoSentinel.UNSETParameters as JSON
--modelnoSentinel.UNSETModel to use
--scopenoSentinel.UNSETFunction scope
--is-agent-skillnoFalseIs agent skill
--chat-actionnoSentinel.UNSETChat action
--hand-off-agentnoSentinel.UNSETHand-off agent ID
--hand-off-to-original-agent-on-completionnoFalseHand off to original agent on completion
--hand-off-to-original-agent-on-failurenoFalseHand off to original agent on failure
--chat-scriptnoSentinel.UNSETChat script
--agent-skill-scriptnoSentinel.UNSETAgent skill script
--db-connection-idnoSentinel.UNSETDatabase connection ID
--graphql-querynoSentinel.UNSETGraphQL query
--graphql-mutationnoSentinel.UNSETGraphQL mutation
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-agent-function <function_id>

update-authorization

Update an existing authorization.

Options

FlagRequiredDefaultDescription
--idnoSentinel.UNSETAuthorization ID
--namenoSentinel.UNSETAuthorization name
--typenoSentinel.UNSETAuthorization type
--confignoSentinel.UNSETAuthorization configuration (JSON)
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-authorization

update-benchmark

Update an existing benchmark.

Options

FlagRequiredDefaultDescription
--idnoSentinel.UNSETBenchmark ID
--namenoSentinel.UNSETBenchmark name
--descriptionnoSentinel.UNSETBenchmark description
--questionsnoSentinel.UNSETQuestions JSON array
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-benchmark

update-channel

Update an existing channel.

Options

FlagRequiredDefaultDescription
--idnoSentinel.UNSETChannel ID
--namenoSentinel.UNSETChannel name
--channelnoSentinel.UNSETChannel type
--providernoSentinel.UNSETService provider
--senderidnoSentinel.UNSETSender ID
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-channel

update-charting-settings

Update charting settings for the workspace.

Arguments

NameRequiredDescription
<settings_id>yes

Options

FlagRequiredDefaultDescription
--confignoSentinel.UNSETSettings configuration (JSON)
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-charting-settings <settings_id>

update-connection

Update an existing connection (hosting configuration).

Arguments

NameRequiredDescription
<connection_id>yes

Options

FlagRequiredDefaultDescription
--namenoSentinel.UNSETConnection name
--typenoSentinel.UNSETHosting type
--endpointnoSentinel.UNSETEndpoint URL
--model-namenoSentinel.UNSETModel name
--base-modelnoSentinel.UNSETBase model
--custom-modelnoFalseIs custom model
--api-versionnoSentinel.UNSETAPI version
--token-secretnoSentinel.UNSETToken secret reference
--descriptionnoSentinel.UNSETConnection description
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-connection <connection_id>

update-embeddings-settings

Update embeddings settings for the workspace.

Arguments

NameRequiredDescription
<settings_id>yes

Options

FlagRequiredDefaultDescription
--confignoSentinel.UNSETSettings configuration (JSON)
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-embeddings-settings <settings_id>

update-scheduled-job

Update an existing scheduled job.

Arguments

NameRequiredDescription
<job_id>yes

Options

FlagRequiredDefaultDescription
--namenoSentinel.UNSETJob name
--descriptionnoSentinel.UNSETJob description
--forced-promptnoSentinel.UNSETForced prompt text
--frequencynoSentinel.UNSETFrequency
--intervalnoSentinel.UNSETInterval
--cron-expressionnoSentinel.UNSETCron expression
--hournoSentinel.UNSETHour
--minutenoSentinel.UNSETMinute
--timezonenoSentinel.UNSETTimezone
--is-activenoFalseIs active
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed information
toothfairy update-scheduled-job <job_id>

update-trigger

Update an existing trigger.

Arguments

NameRequiredDescription
<trigger_id>yes

Options

FlagRequiredDefaultDescription
--namenoSentinel.UNSETTrigger name
--agent-idnoSentinel.UNSETAgent ID
--descriptionnoSentinel.UNSETDescription
--forced-promptnoSentinel.UNSETForced prompt text
--is-activenoSentinel.UNSETArm/disarm
--statusnoSentinel.UNSETStatus (ARMED
--metadatanoSentinel.UNSETMetadata 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-typenoSentinel.UNSETImport type (optional, auto-detected from extension)
--content-typenoSentinel.UNSETContent type (optional, auto-detected from extension)
--output, -onotextOutput format
--verbose, -vnoFalseShow detailed upload information
toothfairy upload <file_path>