retrieve_stateful_response
Retrieve a stored assistant reply from a prior chat completion using its response ID.
Instructions
Fetch a stored chat completion from xAI by its response ID.
Args:
response_id: ID returned by a prior `stateful_chat` call.
Returns:
The stored assistant reply and its `**Response ID:**`, or a not-found message.
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": {
"response_id": "<response_id>"
},
"name": "retrieve_stateful_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_id | Yes |