Skip to main content

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

Common Use Cases

Behavior Notes

Auto-creates chapters: If a chapter with the specified title doesn’t exist, it’s created automatically.
Blocking operation: This tool waits for completion (up to 30 seconds). For longer processing times, use the REST API’s non-blocking approach.
Force parameter: force: true cancels an in-flight prompt and restarts. Use sparingly. it interrupts work in progress.

REST API Equivalent

This tool calls:
  1. POST /api/v1/projects/{projectId}/chapters (if the chapter doesn’t exist)
  2. POST /api/v1/projects/{projectId}/chapters/{chapterId}/prompt
  3. Polls GET /api/v1/projects/{projectId}/chapters/{chapterId} for completion
See the Submit Prompt API documentation for more details.