{
  "name": "catalog_search",
  "description": "Search the complete authorized LeapView BI catalog across workspaces. Use this when you know words from a resource name or description but not its exact location.",
  "privilege": "VIEW_ITEM",
  "effect": "read",
  "operationId": "manual",
  "defaults": {
    "limit": 10
  },
  "tags": [
    "catalog",
    "search"
  ],
  "annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "additionalProperties": false,
    "properties": {
      "context": {
        "additionalProperties": false,
        "properties": {
          "dashboardId": {
            "type": "string"
          },
          "pageId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "cursor": {
        "type": "string"
      },
      "limit": {
        "maximum": 25,
        "minimum": 1,
        "type": "integer"
      },
      "query": {
        "minLength": 1,
        "type": "string"
      },
      "types": {
        "items": {
          "enum": [
            "workspace",
            "dashboard",
            "page",
            "visual",
            "filter",
            "semantic_model",
            "semantic_table",
            "field",
            "measure"
          ],
          "type": "string"
        },
        "type": "array"
      },
      "workspaceIds": {
        "items": {
          "type": "string"
        },
        "type": "array"
      }
    },
    "required": [
      "query"
    ],
    "type": "object"
  },
  "outputSchema": {
    "additionalProperties": false,
    "properties": {
      "count": {
        "minimum": 0,
        "type": "integer"
      },
      "hasMore": {
        "type": "boolean"
      },
      "items": {
        "items": {
          "additionalProperties": false,
          "properties": {
            "capabilities": {
              "items": {
                "enum": [
                  "catalog_get",
                  "catalog_list",
                  "query_semantic_model",
                  "query_dashboard_visual",
                  "query_visual"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "description": {
              "type": "string"
            },
            "hierarchy": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "ref": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "workspace",
                          "dashboard",
                          "page",
                          "visual",
                          "filter",
                          "semantic_model",
                          "semantic_table",
                          "field",
                          "measure"
                        ],
                        "type": "string"
                      },
                      "workspaceId": {
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "workspaceId"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "name",
                  "ref"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "href": {
              "type": "string"
            },
            "locations": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "dashboardId": {
                    "minLength": 1,
                    "type": "string"
                  },
                  "dashboardName": {
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  },
                  "pageId": {
                    "minLength": 1,
                    "type": "string"
                  },
                  "pageName": {
                    "type": "string"
                  }
                },
                "required": [
                  "dashboardId",
                  "pageId"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "name": {
              "type": "string"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "minLength": 1,
                  "type": "string"
                },
                "type": {
                  "enum": [
                    "workspace",
                    "dashboard",
                    "page",
                    "visual",
                    "filter",
                    "semantic_model",
                    "semantic_table",
                    "field",
                    "measure"
                  ],
                  "type": "string"
                },
                "workspaceId": {
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "id",
                "type",
                "workspaceId"
              ],
              "type": "object"
            },
            "workspace": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string"
                },
                "ref": {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "enum": [
                        "workspace",
                        "dashboard",
                        "page",
                        "visual",
                        "filter",
                        "semantic_model",
                        "semantic_table",
                        "field",
                        "measure"
                      ],
                      "type": "string"
                    },
                    "workspaceId": {
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "workspaceId"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "name",
                "ref"
              ],
              "type": "object"
            }
          },
          "required": [
            "capabilities",
            "hierarchy",
            "name",
            "ref",
            "workspace"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "nextCursor": {
        "type": "string"
      }
    },
    "required": [
      "count",
      "hasMore",
      "items"
    ],
    "type": "object"
  }
}
