Skip to main content

Overview

Retrieves the current session for a project, including preview URLs and workflow status. Use this before sending messages to check whether a workflow is already queued/running and to get the preview URL for the app.
Pass the projectId returned from bilt_create_project or bilt_list_projects.

Parameters

string
required
The project to query
  • Format: UUID
  • Example: "660e8400-e29b-41d4-a716-446655440001"

Response

The tool returns JSON with session details and workflow status:
object | null
Current session, if one exists. Includes session metadata, sandbox ID, and previewUrl for the live app preview. The raw previews object is omitted from the MCP response.
array
required
Active workflow item followed by any queued prompt items for the project. Each item uses lowercase status values.
boolean
required
Whether any workflow is currently queued, started, running, or paused

Example Usage

Common Patterns

Check Before Sending a Message

Monitor Build Progress

Poll bilt_get_session every few seconds until hasActiveWorkflows is false. This includes queued work; do not send unrelated follow-up work while a queued item is still present.

bilt_send_message

Send workflow instructions

bilt_get_messages

View conversation history

bilt_cancel_workflow

Stop running workflow