open-swe/agent/tools/linear_get_issue_comments.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

16 lines
410 B
Python

import asyncio
from typing import Any
from ..utils.linear import get_issue_comments
def linear_get_issue_comments(issue_id: str) -> dict[str, Any]:
"""Get all comments on a Linear issue.
Args:
issue_id: The Linear issue UUID.
Returns:
Dictionary with 'comments' list, each containing id, body, createdAt, user, etc.
"""
return asyncio.run(get_issue_comments(issue_id))