⚙️ GitHubSearchTaskExecutionConfigData
{
  "search_query": "topic:kotlin-multiplatform",
  "search_type": "repositories",
  "per_page": 5,
  "sort": "stars",
  "order": "desc"
}
👁️ Session UI Output
GitHub Search Results
JetBrains/kotlin-multiplatform-samples
Samples for Kotlin Multiplatform Mobile...
Stars: 4.2k | Forks: 850
touchlab/KaMPKit
KaMP Kit is a collection of code and tools...
Stars: 2.1k | Forks: 320

Execution Configuration

Field Type Default Description
search_query * String - The search query to use for GitHub search. Supports advanced qualifiers.
search_type String "repositories" Type of search: code, commits, issues, repositories, topics, users.
per_page Int 30 Number of results to return (1-100).
sort String? null Sort order (e.g., stars, forks, updated).
order String? null Sort direction: asc or desc.

Task Lifecycle

  1. Validation: Checks if search_query is present and search_type is valid.
  2. Authentication: Retrieves the GitHub API token from the user's encrypted settings.
  3. Execution: Performs a GET request to api.github.com/search/{type} with encoded parameters.
  4. Reporting: Generates a detailed Markdown transcript and renders a summary in the Session UI.

Prompt Segment

This text is injected into the LLM context to describe the tool's capabilities:

GitHubSearch - Search GitHub for code, commits, issues, repositories, topics, or users
    * Specify the search query
    * Specify the type of search (code, commits, issues, repositories, topics, users)
    * Specify the number of results to return (max 100)
    * Optionally specify sort order (e.g. stars, forks, updated)
    * Optionally specify sort direction (asc or desc)

Kotlin Boilerplate

val task = GitHubSearchTask(
    orchestrationConfig = config,
    planTask = GitHubSearchTask.GitHubSearchTaskExecutionConfigData(
        search_query = "org:simiacryptus",
        search_type = "repositories"
    )
)