build_search_query
Generate a GraphQL search query for a specific content type, returning the query string and variables needed to search text fields.
Instructions
Generate a GraphQL search query for a specific content type based on cached schema information. Returns the query string and variables needed to search text fields in the content type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentType | Yes | The content type to build a search query for | |
| searchTerm | Yes | The term to search for | |
| fields | No | Optional: Specific fields to search (default: all searchable text fields) | |
| spaceId | No | Optional override for the space ID (defaults to SPACE_ID environment variable) | |
| environmentId | No | Optional override for the environment ID (defaults to ENVIRONMENT_ID environment variable or 'master') |