get_active_player_abilities
Retrieve active player abilities in real-time using the League of Legends Live Client Data API. Access key in-game data to enhance strategy and gameplay analysis.
Instructions
Get Abilities for the active player.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:99-99 (registration)Registers the get_active_player_abilities tool using the FastMCP @mcp.tool() decorator.@mcp.tool()
- main.py:101-107 (handler)The main handler function that fetches the active player's abilities from the League of Legends live client API endpoint and returns the JSON response.async def get_active_player_abilities() -> dict: """ Get Abilities for the active player. """ async with get_lol_client() as client: response = await client.get("/liveclientdata/activeplayerabilities") return response.json()
- main.py:100-100 (helper)Applies the timeout decorator to handle potential connection and timeout errors in the tool handler.@with_timeout