action discourse_search { label: "Search for a term" provider: discourse method: GET path: "/search.json" encoding: json input: { type: "object" properties: { page: { type: "integer" } q: { type: "string" } } additionalProperties: false } output: { required: ["categories", "grouped_search_result", "groups", "posts", "tags", "users"] properties: { categories: { type: "array" items: { type: "object" } } grouped_search_result: { type: "object" required: ["can_create_topic", "category_ids", "error", "group_ids", "more_categories", "more_full_page_results", "more_posts", "more_users", "post_ids", "search_log_id", "tag_ids", "term", "user_ids"] properties: { can_create_topic: { type: "boolean" } category_ids: { type: "array" items: { type: "object" } } error: { type: ["string", "null"] } group_ids: { type: "array" items: { type: "object" } } more_categories: { type: ["string", "null"] } more_full_page_results: { type: ["string", "null"] } more_posts: { type: ["string", "null"] } more_users: { type: ["string", "null"] } post_ids: { type: "array" items: { type: "object" } } search_log_id: { type: "integer" } tag_ids: { type: "array" items: { type: "object" } } term: { type: "string" } user_ids: { type: "array" items: { type: "object" } } } additionalProperties: false } groups: { type: "array" items: { type: "object" } } posts: { type: "array" items: { type: "object" } } tags: { type: "array" items: { type: "object" } } users: { type: "array" items: { type: "object" } } } additionalProperties: false } }