List Sessions
list_sessionsList the legislative sessions for a US state (regular and special), with start/end years and session IDs. Useful to scope which session to track bills in. Example: list_sessions({ state: "NY" })
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"state": "NY"
},
"name": "list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | 2-letter state abbreviation, e.g. "NY", "FL", "CA". | |
| _apiKey | No | Optional — your own LegiScan API key for higher limits; omit to use the shared Pipeworx key. |