Search Tasks

Search_Tasks returns GovTribe task records used in capture execution, including task ownership, creator context, linked pipeline, and linked pursuit.

When To Use

Typical questions this tool answers well:

  • Which tasks belong to a specific pipeline, pursuit, or owner right now?

  • Which tasks were created by a specific user, or assigned to a specific user?

  • Which exact task records match a known set of GovTribe task IDs?

  • How many tasks match my current filter set before requesting row payloads?

  • Which tasks mention a topic in name/description/comment using keyword or semantic search mode?

Required Reading

  1. Search_Query_Guide: Required before setting free-text query strings when search_mode is used.

  2. Search_Mode_Guide: Required before choosing keyword vs semantic retrieval.

Input Contract

  • query: Free-text query string. See Required Reading: Search_Query_Guide.

    • type: string

    • required: no

    • default: n/a

  • page: 1-based page index.

    • type: null|number

    • required: no

    • default: 1

  • per_page: Rows per page.

    • type: null|number

    • required: no

    • default: 10

  • search_mode: Query interpretation mode. See Required Reading: Search_Mode_Guide.

    • type: string

    • required: no

    • default: keyword

    • options: keyword, semantic

  • pipeline_ids: Filter by pipelines. Use GovTribe IDs.

    • type: array<string>

    • required: no

    • default: n/a

  • pipeline_ids_operator: Choose whether to include or exclude values for Pipeline GovTribe IDs.

    • type: null|string

    • required: no

    • default: in

    • options: in, not_in

  • pursuit_ids: Filter by pursuits. Use GovTribe IDs.

    • type: array<string>

    • required: no

    • default: n/a

  • pursuit_ids_operator: Choose whether to include or exclude values for Pursuit GovTribe IDs.

    • type: null|string

    • required: no

    • default: in

    • options: in, not_in

  • creator_ids: Filter by creators. Use GovTribe IDs.

    • type: array<string>

    • required: no

    • default: n/a

  • creator_ids_operator: Choose whether to include or exclude values for Creator GovTribe IDs.

    • type: null|string

    • required: no

    • default: in

    • options: in, not_in

  • owner_ids: Filter by owners. Use GovTribe IDs.

    • type: array<string>

    • required: no

    • default: n/a

  • owner_ids_operator: Choose whether to include or exclude values for Owner GovTribe IDs.

    • type: null|string

    • required: no

    • default: in

    • options: in, not_in

  • task_ids: Include or exclude results by GovTribe IDs.

    • type: array<string>

    • required: no

    • default: n/a

  • task_ids_operator: Choose whether to include or exclude values for GovTribe IDs.

    • type: null|string

    • required: no

    • default: in

    • options: in, not_in

  • sort: Sort configuration.

    • type: object

    • required: no

    • default: n/a

    • shape: { key?: null|string, direction?: null|string }

    • options: key: updated_at, created_at, dueDate, _score; direction: asc, desc

  • fields_to_return: Optional field list for row payloads. If omitted and per_page > 0, rows default to govtribe_id. For per_page: 0 aggregation/meta calls, this field may be omitted. Specify fields_to_return whenever the user asks for fields beyond govtribe_id, and prefer omitting it in pure aggregation workflows.

    • type: array<string>

    • required: no

    • default: n/a

    • options: govtribe_id, govtribe_ai_summary, govtribe_type, govtribe_url, name, description, comment, due_date, past_due, due_soon, priority, completed_at, reopened_at, created_at, updated_at, owner, creator, pipeline, pursuit, stage

Output Contract

  • Top-level keys:

    • current_page: Current page number when per_page > 0.

    • data: Array of result rows when per_page > 0.

    • from: First row position in the current page.

    • last_page: Last page number for current filters.

    • path: GovTribe search URL for this result set.

    • per_page: Applied page size.

    • to: Last row position in the current page.

    • total: Total matched row count for current query filters.

    • contains: Dataset label for the returned result set.

    • search_results_id_can_generate_saved_search: Saved-search eligibility flag.

    • search_results_id: Server-side search result identifier.

    • view_search_results_url: URL to open this exact result set.

    • per_page: 0 behavior: omits row/pagination keys and returns metadata keys (path, total, contains, search_results_id_can_generate_saved_search, search_results_id, view_search_results_url).

  • Row keys:

    • govtribe_id

    • govtribe_ai_summary

    • govtribe_type

    • govtribe_url

    • name

    • description

    • comment

    • due_date

    • past_due

    • due_soon

    • priority

    • completed_at

    • reopened_at

    • created_at

    • updated_at

    • owner

    • creator

    • pipeline

    • pursuit

    • stage

  • Relationship retrieval map:

    • creator

      • resource_type: user

      • tool: Search_Users

      • filter: user_ids

      • nested_keys: govtribe_id, govtribe_type, name, email

    • owner

      • resource_type: user

      • tool: Search_Users

      • filter: user_ids

      • nested_keys: govtribe_id, govtribe_type, name, email

    • pipeline

      • resource_type: pipeline

      • tool: Search_Pipelines

      • filter: pipeline_ids

      • nested_keys: govtribe_id, govtribe_type, govtribe_url, name

    • pursuit

      • resource_type: pursuit

      • tool: Search_Pursuits

      • filter: pursuit_ids

      • nested_keys: govtribe_id, govtribe_type, govtribe_url, name

    • stage

      • resource_type: stage

      • tool: Search_Stages

      • filter: stage_ids

      • nested_keys: govtribe_id, govtribe_type, govtribe_url, name, type

Usage Patterns

Pattern A: Pipeline work queue for one owner (resolve IDs first with Search_Users and Search_Pipelines). Tool: Search_Tasks

Pattern B: Retrieve tasks for a specific pursuit during capture reviews. Tool: Search_Tasks

Pattern C: Count matching tasks before fetching rows. Tool: Search_Tasks

Then rerun with per_page > 0 and the same filters when row payloads are needed.

Pattern D: Exclude completed historical IDs from a focused task list. Tool: Search_Tasks

Pattern E: Semantic discovery of related execution work across pursuits. Tool: Search_Tasks

Last updated

Was this helpful?