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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "chat"
}
}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. |