Overview
Submits a prompt to a chapter, describing what to build. This tool waits for completion (unlike the REST API which returns immediately), making it suited for conversational workflows.This tool polls for up to 30 seconds. If the chapter is still processing after that, you’ll get a timeout response and can poll again.
Parameters
string
required
The project ID (e.g.,
prj_abc123xyz)string
required
The chapter name. The chapter is created if it doesn’t already exist.
string
required
Prompt content describing what to build (1-5000 characters)
boolean
If
true, cancel any in-flight prompt for this chapter and restart (default: false)Returns
Returns the chapter status after polling for completion.Example Usage
In Claude
Direct Tool Call
Response (Success)
Response (Timeout)
Writing Effective Prompts
Reference real product surfaces
Reference real product surfaces
Include timing details
Include timing details
Describe the output, not the magic
Describe the output, not the magic
Reference uploaded assets
Reference uploaded assets
Common Use Cases
Building chapter content
Building chapter content
Iterating on content
Iterating on content
Batch creation
Batch creation
Behavior Notes
Auto-creates chapters: If a chapter with the specified title doesn’t exist, it’s created automatically.
REST API Equivalent
This tool calls:POST /api/v1/projects/{projectId}/chapters(if the chapter doesn’t exist)POST /api/v1/projects/{projectId}/chapters/{chapterId}/prompt- Polls
GET /api/v1/projects/{projectId}/chapters/{chapterId}for completion