Overview
Retrieves the current workflow session for a project, including status, progress, and metadata. Essential for monitoring build/deployment progress and getting session IDs for bilt_send_message.Sessions are automatically created when you send your first message to a project. Use this tool to get the session ID before calling bilt_send_message.
Parameters
Specific session ID to query
- Format: UUID
- Optional: If omitted, returns current/most recent session
- Example:
"550e8400-e29b-41d4-a716-446655440000"
Project to get session for (if session_id not provided)
- Format: UUID
- Example:
"660e8400-e29b-41d4-a716-446655440001"
Response
Unique session identifier
Associated project ID
Current workflow statusValues:
"idle"- No active workflow"pending"- Queued, waiting to start"running"- Actively processing"completed"- Successfully finished"failed"- Error occurred
Progress information (when available)
ISO 8601 timestamp of session creation
ISO 8601 timestamp of last activity
Example Usage
Get Current Session
Get Specific Session
Status Values Explained
idleNo workflow running. Ready to accept new messages.
pendingWorkflow queued. Will start shortly.
runningActively building/deploying. Check progress field.
completedWorkflow finished successfully.
failedError occurred. Check messages for details.
pausedWorkflow paused. Can resume with bilt_resume_workflow.
Common Patterns
Pattern 1: Get Session ID Before Sending Message
Pattern 2: Monitor Build Progress
Pattern 3: Check if Workflow is Running
Best Practices
Always get session before sending
Always get session before sending
Never hardcode session IDs. Always fetch the current one:
Poll efficiently
Poll efficiently
When monitoring progress, don’t poll too frequently:
Check status before acting
Check status before acting
Respect the current workflow state:
Show progress to users
Show progress to users
When available, display progress updates:
Error Handling
Related Tools
bilt_send_message
Send workflow instructions
bilt_get_messages
View workflow history
bilt_cancel_workflow
Stop running workflow
Next Steps
After getting session:- Send instructions - Use bilt_send_message
- View logs - Use bilt_get_messages
- Resume if paused - Use bilt_resume_workflow
- Cancel if needed - Use bilt_cancel_workflow
