Sazabi
CLI

sazabi messages

Command reference for sazabi messages.

sazabi messages — Send, list, and search messages. Subcommands: send, list, search.

sazabi messages

Send, list, and search messages

sazabi messages <subcommand>
sazabi messages send 'Hello'  # Start a new thread
sazabi messages send 'Follow up' -t <thread-id>  # Append to thread
sazabi messages list <thread-id>  # List messages in thread
sazabi messages search "error"  # Search messages

sazabi messages send

Send a message (creates new thread if --thread-id omitted)

sazabi messages send <message> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--thread-id, -tstringNoThread ID to append to (creates new thread if omitted)
--waitbooleanNoWait for assistant response and print it
--timeoutstringNoTimeout in seconds to wait for response before returning processing state
--jsonbooleanNoOutput as JSON
--api-base-urlstringNoOverride API base URL
sazabi messages send 'Hello'  # Start a new thread
sazabi messages send 'Hello' --thread-id abc123  # Append to existing thread
sazabi messages send 'Hello' -t abc123 --wait  # Append and wait for reply
sazabi messages send 'Hello' --wait  # New thread, wait for reply
sazabi messages send 'Hello' --wait --timeout 120  # Wait up to 2 minutes

sazabi messages list

List messages in a thread

sazabi messages list <thread-id> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--limitstringNoMaximum number of messages to return (default: 50, max: 100)
--cursorstringNoPagination cursor from previous response
--jsonbooleanNoOutput as JSON
--api-base-urlstringNoOverride API base URL
sazabi messages list <thread-id>  # List all messages in thread
sazabi messages list <thread-id> --limit 20  # List with custom limit
sazabi messages list <thread-id> --cursor xyz  # List next page

Search messages in the active project

sazabi messages search <query> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--limitstringNoMaximum number of results (default: 20, max: 100)
--pagestringNoPage number for pagination (default: 1)
--thread-idstringNoFilter messages by thread ID
--rolestringNoFilter by role: user or assistant
--jsonbooleanNoOutput as JSON
--api-base-urlstringNoOverride API base URL
sazabi messages search "error handling"  # Search messages
sazabi messages search "bug" --limit 50  # Search with limit
sazabi messages search "user input" --role user  # Search user messages only
sazabi messages search "response" --thread-id thread-123  # Search in specific thread