chat
Start a new Claude session by sending a prompt. Returns the AI response and a session ID for continuing the conversation.
Instructions
Start a new Claude session with a prompt. Returns the response and the new Session ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional: Working directory for the claude CLI execution. | |
| model | No | Optional: The model to use (e.g., 'sonnet', 'opus', 'haiku'). | |
| prompt | Yes | The prompt to start the session with. | |
| systemPrompt | No | Optional: System prompt to set the assistant's behavior. |