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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contentType": "<contentType>",
"searchTerm": "<searchTerm>"
},
"name": "build_search_query"
}
}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') |