open-swe/agent/tools/linear_search_issues.py

35 lines
1.1 KiB
Python
Raw Normal View History

from typing import Any
from ..utils.linear import search_issues
async def linear_search_issues(
query: str,
team_id: str | None = None,
limit: int = 10,
include_archived: bool = False,
include_comments: bool = False,
after: str | None = None,
) -> dict[str, Any]:
"""Search Linear issues by title, description, and optionally comments.
Args:
query: Free-text search query.
team_id: Optional team UUID used to restrict matches to that team.
limit: Maximum results to return, from 1 to 50.
include_archived: Whether to include archived issues.
include_comments: Whether to search issue comments in addition to issue content.
after: Optional pagination cursor from a previous result's page_info.endCursor.
Returns:
Matching issues plus total_count and page_info for pagination.
"""
return await search_issues(
query=query,
team_id=team_id,
limit=limit,
include_archived=include_archived,
include_comments=include_comments,
after=after,
)