open-swe/agent/tools/linear_list_teams.py
Brace Sproul 91348aeb7c
feat: add linear tools for listing teams, get/create/update/delete issues, and get issue comments (#1105)
Adds 6 new agent tools backed by Linear's GraphQL API, with a shared
_graphql_request helper to reduce boilerplate. Refactors existing
comment_on_linear_issue to use the same helper.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-03-23 14:32:44 -07:00

13 lines
314 B
Python

import asyncio
from typing import Any
from ..utils.linear import list_teams
def linear_list_teams() -> dict[str, Any]:
"""List all teams in the Linear workspace.
Returns:
Dictionary with 'teams' list, each containing id, name, key, and description.
"""
return asyncio.run(list_teams())