| Field | Value |
|---|---|
| Canonical URI | https://docs.aion.to/extensions/aion/context/get-contexts/1.0.0 |
| Issuer | aion |
| Version | 1.0.0 |
| Activation | Available on all A2A agent servers. No explicit activation required. |
| Related Methods | GetContext |
Overview
GetContexts is a JSON-RPC method that returns a paginated list of available conversation context identifiers. Use the returned IDs with GetContext to retrieve full conversation history.
Request
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
historyLength | Integer | optional | Maximum number of contexts to return. Defaults to server-defined limit. |
historyOffset | Integer | optional | Number of most-recent contexts to skip before returning results. Defaults to 0. |
Response
Success
result field contains a ContextsList — an ordered array of context_id strings, most recent first. Each ID can be passed to GetContext to retrieve the full conversation.
Error
Usage Example
Pagination
BothhistoryLength and historyOffset work together to paginate through large context lists: