{
  "service": "ragie",
  "displayName": "Ragie",
  "categories": [
    "AI",
    "Developer Tools"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "ragie_api_key",
      "description": "Ragie API key used with the Authorization Bearer header. Create it by following the official guide at https://docs.ragie.ai/docs/step-1-create-an-api-key.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://www.ragie.ai",
  "actions": [
    {
      "id": "ragie.create_document_from_url",
      "service": "ragie",
      "name": "create_document_from_url",
      "description": "Create a Ragie document from a public URL when the source file is already hosted externally.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The public URL of the source document.",
            "format": "uri"
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "description": "The Ragie processing mode string."
              },
              {
                "type": "object",
                "additionalProperties": true,
                "description": "A loose JSON object accepted by Ragie."
              }
            ],
            "description": "The optional processing mode for ingestion."
          },
          "name": {
            "type": "string",
            "description": "The user-facing document name."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "A metadata object containing Ragie-compatible primitive values."
          },
          "partition": {
            "type": "string",
            "description": "The partition to place the document in."
          },
          "externalId": {
            "type": "string",
            "description": "The external identifier of the document."
          }
        },
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the document."
          },
          "name": {
            "type": "string",
            "description": "The document name."
          },
          "status": {
            "type": "string",
            "description": "The current processing status of the document."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "A metadata object containing Ragie-compatible primitive values."
          },
          "partition": {
            "type": "string",
            "description": "The partition that scopes the document."
          },
          "createdAt": {
            "type": "string",
            "description": "The ISO 8601 timestamp when the document was created.",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "description": "The ISO 8601 timestamp when the document was last updated.",
            "format": "date-time"
          },
          "pageCount": {
            "type": "number",
            "description": "The number of pages in the document."
          },
          "chunkCount": {
            "type": "integer",
            "description": "The number of generated chunks."
          },
          "externalId": {
            "type": "string",
            "description": "The external identifier of the document."
          }
        },
        "additionalProperties": true,
        "description": "A Ragie document."
      }
    },
    {
      "id": "ragie.create_document_raw",
      "service": "ragie",
      "name": "create_document_raw",
      "description": "Create a Ragie document from raw text or JSON data when the content already exists in memory and does not need file upload.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "string",
                "description": "The raw text content to ingest."
              },
              {
                "type": "object",
                "additionalProperties": true,
                "description": "A loose JSON object accepted by Ragie."
              }
            ],
            "description": "The raw data to ingest into Ragie."
          },
          "name": {
            "type": "string",
            "description": "The user-facing document name."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "A metadata object containing Ragie-compatible primitive values."
          },
          "partition": {
            "type": "string",
            "description": "The partition to place the document in."
          },
          "externalId": {
            "type": "string",
            "description": "The external identifier of the document."
          }
        },
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the document."
          },
          "name": {
            "type": "string",
            "description": "The document name."
          },
          "status": {
            "type": "string",
            "description": "The current processing status of the document."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "A metadata object containing Ragie-compatible primitive values."
          },
          "partition": {
            "type": "string",
            "description": "The partition that scopes the document."
          },
          "createdAt": {
            "type": "string",
            "description": "The ISO 8601 timestamp when the document was created.",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "description": "The ISO 8601 timestamp when the document was last updated.",
            "format": "date-time"
          },
          "pageCount": {
            "type": "number",
            "description": "The number of pages in the document."
          },
          "chunkCount": {
            "type": "integer",
            "description": "The number of generated chunks."
          },
          "externalId": {
            "type": "string",
            "description": "The external identifier of the document."
          }
        },
        "additionalProperties": true,
        "description": "A Ragie document."
      }
    },
    {
      "id": "ragie.create_oauth_redirect_url",
      "service": "ragie",
      "name": "create_oauth_redirect_url",
      "description": "Create the Ragie embedded OAuth redirect URL for a connection source type such as Google Drive or Notion.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "redirectUri": {
            "type": "string",
            "description": "The redirect URI that Ragie should return the user to.",
            "format": "uri"
          },
          "sourceType": {
            "type": "string",
            "description": "The Ragie connection source type to authorize."
          },
          "theme": {
            "type": "string",
            "enum": [
              "light",
              "dark",
              "system"
            ],
            "description": "The theme for Ragie's OAuth UI."
          },
          "config": {
            "type": "object",
            "additionalProperties": true,
            "description": "A loose JSON object accepted by Ragie."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "A metadata object containing Ragie-compatible primitive values."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the connection to."
          },
          "pageLimit": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of pages Ragie may sync."
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "description": "The Ragie processing mode string."
              },
              {
                "type": "object",
                "additionalProperties": true,
                "description": "A loose JSON object accepted by Ragie."
              }
            ],
            "description": "The optional processing mode for ingestion."
          },
          "authenticatorId": {
            "type": "string",
            "description": "The white-label authenticator identifier to use."
          }
        },
        "additionalProperties": false,
        "required": [
          "redirectUri"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The OAuth redirect URL returned by Ragie.",
            "format": "uri"
          }
        },
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.create_partition",
      "service": "ragie",
      "name": "create_partition",
      "description": "Create a Ragie partition to isolate documents, metadata schemas, and resource limits by workspace or tenant.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The partition identifier to create."
          },
          "description": {
            "type": "string",
            "description": "The partition description."
          },
          "contextAware": {
            "type": "boolean",
            "description": "Whether the partition should generate context-aware descriptions."
          },
          "metadataSchema": {
            "type": "object",
            "additionalProperties": true,
            "description": "A loose JSON object accepted by Ragie."
          },
          "mediaHostedLimitMax": {
            "type": "integer",
            "description": "The maximum hosted media limit in megabytes."
          },
          "pagesHostedLimitMax": {
            "type": "integer",
            "description": "The maximum hosted pages limit."
          },
          "mediaStreamedLimitMax": {
            "type": "integer",
            "description": "The maximum streamed media limit in megabytes."
          },
          "audioProcessedLimitMax": {
            "type": "integer",
            "description": "The maximum audio processing limit in minutes."
          },
          "pagesProcessedLimitMax": {
            "type": "integer",
            "description": "The maximum processed pages limit."
          },
          "videoProcessedLimitMax": {
            "type": "integer",
            "description": "The maximum video processing limit in minutes."
          },
          "mediaHostedLimitMonthly": {
            "type": "integer",
            "description": "The monthly hosted media limit in megabytes."
          },
          "pagesHostedLimitMonthly": {
            "type": "integer",
            "description": "The monthly hosted pages limit."
          },
          "mediaStreamedLimitMonthly": {
            "type": "integer",
            "description": "The monthly streamed media limit in megabytes."
          },
          "audioProcessedLimitMonthly": {
            "type": "integer",
            "description": "The monthly audio processing limit in minutes."
          },
          "pagesProcessedLimitMonthly": {
            "type": "integer",
            "description": "The monthly processed pages limit."
          },
          "videoProcessedLimitMonthly": {
            "type": "integer",
            "description": "The monthly video processing limit in minutes."
          }
        },
        "additionalProperties": false,
        "required": [
          "name"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": true,
        "description": "A Ragie partition."
      }
    },
    {
      "id": "ragie.delete_document",
      "service": "ragie",
      "name": "delete_document",
      "description": "Delete a Ragie document, optionally in asynchronous mode.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "The document identifier."
          },
          "async": {
            "type": "boolean",
            "description": "Whether Ragie should delete the document asynchronously."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the request to."
          }
        },
        "additionalProperties": false,
        "required": [
          "documentId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "The deletion status returned by Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "status"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.delete_partition",
      "service": "ragie",
      "name": "delete_partition",
      "description": "Delete a Ragie partition, optionally in asynchronous mode.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "partitionId": {
            "type": "string",
            "description": "The partition identifier."
          },
          "asyncDeletion": {
            "type": "boolean",
            "description": "Whether Ragie should delete the partition asynchronously."
          }
        },
        "additionalProperties": false,
        "required": [
          "partitionId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The deletion result message returned by Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "message"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.get_document",
      "service": "ragie",
      "name": "get_document",
      "description": "Get a single Ragie document by ID to inspect status, metadata, errors, and counts.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "The document identifier."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the request to."
          }
        },
        "additionalProperties": false,
        "required": [
          "documentId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the document."
          },
          "name": {
            "type": "string",
            "description": "The document name."
          },
          "status": {
            "type": "string",
            "description": "The current processing status of the document."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "A metadata object containing Ragie-compatible primitive values."
          },
          "partition": {
            "type": "string",
            "description": "The partition that scopes the document."
          },
          "createdAt": {
            "type": "string",
            "description": "The ISO 8601 timestamp when the document was created.",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "description": "The ISO 8601 timestamp when the document was last updated.",
            "format": "date-time"
          },
          "pageCount": {
            "type": "number",
            "description": "The number of pages in the document."
          },
          "chunkCount": {
            "type": "integer",
            "description": "The number of generated chunks."
          },
          "externalId": {
            "type": "string",
            "description": "The external identifier of the document."
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "The list of processing errors."
          }
        },
        "additionalProperties": true,
        "description": "A detailed Ragie document."
      }
    },
    {
      "id": "ragie.get_document_chunks",
      "service": "ragie",
      "name": "get_document_chunks",
      "description": "List the chunks of a Ragie document with cursor pagination and optional start/end index filtering.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "The document identifier."
          },
          "cursor": {
            "type": "string",
            "description": "The pagination cursor returned by a previous chunk list call."
          },
          "pageSize": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of chunks to return per page."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the request to."
          },
          "startIndex": {
            "type": "integer",
            "description": "The inclusive starting chunk index."
          },
          "endIndex": {
            "type": "integer",
            "description": "The inclusive ending chunk index."
          }
        },
        "additionalProperties": false,
        "required": [
          "documentId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "chunks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the chunk."
                },
                "text": {
                  "type": "string",
                  "description": "The chunk text content."
                },
                "index": {
                  "type": "integer",
                  "description": "The zero-based chunk index."
                },
                "links": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A loose JSON object accepted by Ragie."
                },
                "metadata": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A loose JSON object accepted by Ragie."
                }
              },
              "additionalProperties": true,
              "description": "A Ragie document chunk."
            },
            "description": "The returned chunks."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The cursor for the next page of results."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "type": "integer",
                "description": "The total number of records in the result set."
              }
            },
            "additionalProperties": false,
            "description": "Pagination information returned by Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "chunks",
          "pagination"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.get_document_content",
      "service": "ragie",
      "name": "get_document_content",
      "description": "Get Ragie document content in the requested media type, with optional byte range and download behavior.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "The document identifier."
          },
          "range": {
            "type": "string",
            "description": "The HTTP byte range to request from Ragie."
          },
          "download": {
            "type": "boolean",
            "description": "Whether Ragie should return content as a download."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the request to."
          },
          "mediaType": {
            "type": "string",
            "description": "The media type to request from Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "documentId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the document."
          },
          "name": {
            "type": "string",
            "description": "The document name."
          },
          "status": {
            "type": "string",
            "description": "The current processing status of the document."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "A metadata object containing Ragie-compatible primitive values."
          },
          "partition": {
            "type": "string",
            "description": "The partition that scopes the document."
          },
          "createdAt": {
            "type": "string",
            "description": "The ISO 8601 timestamp when the document was created.",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "description": "The ISO 8601 timestamp when the document was last updated.",
            "format": "date-time"
          },
          "pageCount": {
            "type": "number",
            "description": "The number of pages in the document."
          },
          "chunkCount": {
            "type": "integer",
            "description": "The number of generated chunks."
          },
          "externalId": {
            "type": "string",
            "description": "The external identifier of the document."
          },
          "content": {
            "type": "string",
            "description": "The document content in the requested media type."
          }
        },
        "additionalProperties": true,
        "description": "A Ragie document including content."
      }
    },
    {
      "id": "ragie.get_document_summary",
      "service": "ragie",
      "name": "get_document_summary",
      "description": "Get the Ragie-generated summary for a specific document.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "The document identifier."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the request to."
          }
        },
        "additionalProperties": false,
        "required": [
          "documentId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "The document identifier."
          },
          "summary": {
            "type": "string",
            "description": "The summary generated by Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "documentId",
          "summary"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.get_partition",
      "service": "ragie",
      "name": "get_partition",
      "description": "Get a specific Ragie partition together with its limits and usage stats.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "partitionId": {
            "type": "string",
            "description": "The partition identifier."
          }
        },
        "additionalProperties": false,
        "required": [
          "partitionId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": true,
        "description": "A Ragie partition."
      }
    },
    {
      "id": "ragie.list_connection_source_types",
      "service": "ragie",
      "name": "list_connection_source_types",
      "description": "List the embedded connector source types that Ragie can authorize and sync through its connections API.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "connectors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sourceType": {
                  "type": "string",
                  "description": "The connector source type identifier."
                },
                "displayName": {
                  "type": "string",
                  "description": "The connector display name."
                },
                "iconUrl": {
                  "type": "string",
                  "description": "The connector icon URL.",
                  "format": "uri"
                },
                "docsUrl": {
                  "type": "string",
                  "description": "The documentation URL for the connector.",
                  "format": "uri"
                }
              },
              "additionalProperties": true,
              "description": "A Ragie connector source type."
            },
            "description": "The available connector source types."
          }
        },
        "additionalProperties": false,
        "required": [
          "connectors"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.list_connections",
      "service": "ragie",
      "name": "list_connections",
      "description": "List Ragie connections with metadata filtering, pagination, and optional partition scoping.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "description": "The pagination cursor returned by a previous list call."
          },
          "filter": {
            "type": "string",
            "description": "The filter expression used to narrow returned connections."
          },
          "pageSize": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of connections to return per page."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the request to."
          }
        },
        "additionalProperties": false,
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "connections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique connection identifier."
                },
                "name": {
                  "type": "string",
                  "description": "The connection display name."
                },
                "type": {
                  "type": "string",
                  "description": "The connection source type."
                },
                "source": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A loose JSON object accepted by Ragie."
                },
                "enabled": {
                  "type": "boolean",
                  "description": "Whether the connection is enabled."
                },
                "metadata": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A loose JSON object accepted by Ragie."
                },
                "createdAt": {
                  "type": "string",
                  "description": "The ISO 8601 timestamp when the connection was created.",
                  "format": "date-time"
                },
                "updatedAt": {
                  "type": "string",
                  "description": "The ISO 8601 timestamp when the connection was last updated.",
                  "format": "date-time"
                },
                "pageLimit": {
                  "type": "integer",
                  "description": "The maximum page limit configured on the connection."
                },
                "disabledBySystem": {
                  "type": "boolean",
                  "description": "Whether the connection was disabled by the system."
                },
                "disabledBySystemReason": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The reason why the system disabled the connection."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "A Ragie connection."
            },
            "description": "The returned connections."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The cursor for the next page of results."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "type": "integer",
                "description": "The total number of records in the result set."
              }
            },
            "additionalProperties": false,
            "description": "Pagination information returned by Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "connections",
          "pagination"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.list_documents",
      "service": "ragie",
      "name": "list_documents",
      "description": "List Ragie documents with filter, cursor pagination, and optional partition scoping to inspect ingestion progress.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "description": "The pagination cursor returned by a previous list call."
          },
          "filter": {
            "type": "string",
            "description": "The filter expression used to narrow returned documents."
          },
          "pageSize": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of documents to return per page."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the request to."
          }
        },
        "additionalProperties": false,
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the document."
                },
                "name": {
                  "type": "string",
                  "description": "The document name."
                },
                "status": {
                  "type": "string",
                  "description": "The current processing status of the document."
                },
                "metadata": {
                  "type": "object",
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string metadata value."
                      },
                      {
                        "type": "number",
                        "description": "A numeric metadata value."
                      },
                      {
                        "type": "boolean",
                        "description": "A boolean metadata value."
                      },
                      {
                        "type": "null"
                      },
                      {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "description": "An array metadata value."
                      }
                    ],
                    "description": "A Ragie metadata value."
                  },
                  "description": "A metadata object containing Ragie-compatible primitive values."
                },
                "partition": {
                  "type": "string",
                  "description": "The partition that scopes the document."
                },
                "createdAt": {
                  "type": "string",
                  "description": "The ISO 8601 timestamp when the document was created.",
                  "format": "date-time"
                },
                "updatedAt": {
                  "type": "string",
                  "description": "The ISO 8601 timestamp when the document was last updated.",
                  "format": "date-time"
                },
                "pageCount": {
                  "type": "number",
                  "description": "The number of pages in the document."
                },
                "chunkCount": {
                  "type": "integer",
                  "description": "The number of generated chunks."
                },
                "externalId": {
                  "type": "string",
                  "description": "The external identifier of the document."
                }
              },
              "additionalProperties": true,
              "description": "A Ragie document."
            },
            "description": "The returned documents."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The cursor for the next page of results."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "type": "integer",
                "description": "The total number of records in the result set."
              }
            },
            "additionalProperties": false,
            "description": "Pagination information returned by Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "documents",
          "pagination"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.list_partitions",
      "service": "ragie",
      "name": "list_partitions",
      "description": "List available Ragie partitions and their current limits with cursor pagination.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "description": "The pagination cursor returned by a previous list call."
          },
          "pageSize": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The number of partitions to return per page."
          }
        },
        "additionalProperties": false,
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "partitions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A Ragie partition."
            },
            "description": "The returned partitions."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The cursor for the next page of results."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "type": "integer",
                "description": "The total number of records in the result set."
              }
            },
            "additionalProperties": false,
            "description": "Pagination information returned by Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "partitions",
          "pagination"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.patch_document_metadata",
      "service": "ragie",
      "name": "patch_document_metadata",
      "description": "Patch Ragie document metadata in place without replacing the entire metadata object.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "The document identifier."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "The metadata fields to upsert or remove with null values."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope the request to."
          },
          "async": {
            "type": "boolean",
            "description": "Whether Ragie should run the metadata patch asynchronously."
          }
        },
        "additionalProperties": false,
        "required": [
          "documentId",
          "metadata"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "The accepted status when Ragie runs the patch asynchronously."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "description": "A string metadata value."
                },
                {
                  "type": "number",
                  "description": "A numeric metadata value."
                },
                {
                  "type": "boolean",
                  "description": "A boolean metadata value."
                },
                {
                  "type": "null"
                },
                {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": "An array metadata value."
                }
              ],
              "description": "A Ragie metadata value."
            },
            "description": "A metadata object containing Ragie-compatible primitive values."
          }
        },
        "additionalProperties": false,
        "description": "The output payload for this action."
      }
    },
    {
      "id": "ragie.retrieve",
      "service": "ragie",
      "name": "retrieve",
      "description": "Retrieve the most relevant Ragie document chunks for a query, with optional metadata filters, reranking, and partition scoping.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "The search query used for retrieval."
          },
          "topK": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of chunks to return."
          },
          "filter": {
            "type": "object",
            "additionalProperties": true,
            "description": "A loose JSON object accepted by Ragie."
          },
          "rerank": {
            "type": "boolean",
            "description": "Whether Ragie should rerank chunks for semantic relevance."
          },
          "partition": {
            "type": "string",
            "description": "The partition to scope retrieval to."
          },
          "recencyBias": {
            "type": "boolean",
            "description": "Whether to favor newer documents during retrieval."
          },
          "maxChunksPerDocument": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of chunks to return per document."
          }
        },
        "additionalProperties": false,
        "required": [
          "query"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "scoredChunks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the chunk."
                },
                "text": {
                  "type": "string",
                  "description": "The chunk text content."
                },
                "index": {
                  "type": "integer",
                  "description": "The zero-based chunk index."
                },
                "links": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A loose JSON object accepted by Ragie."
                },
                "metadata": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "A loose JSON object accepted by Ragie."
                },
                "score": {
                  "type": "number",
                  "description": "The retrieval relevance score."
                },
                "documentId": {
                  "type": "string",
                  "description": "The identifier of the source document."
                },
                "documentName": {
                  "type": "string",
                  "description": "The name of the source document."
                },
                "documentMetadata": {
                  "type": "object",
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string metadata value."
                      },
                      {
                        "type": "number",
                        "description": "A numeric metadata value."
                      },
                      {
                        "type": "boolean",
                        "description": "A boolean metadata value."
                      },
                      {
                        "type": "null"
                      },
                      {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "description": "An array metadata value."
                      }
                    ],
                    "description": "A Ragie metadata value."
                  },
                  "description": "A metadata object containing Ragie-compatible primitive values."
                }
              },
              "additionalProperties": true,
              "description": "A scored retrieval chunk returned by Ragie."
            },
            "description": "The retrieved document chunks."
          }
        },
        "additionalProperties": false,
        "required": [
          "scoredChunks"
        ],
        "description": "Action output."
      }
    },
    {
      "id": "ragie.set_partition_limits",
      "service": "ragie",
      "name": "set_partition_limits",
      "description": "Update the page, media, audio, and video limits on an existing Ragie partition.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "partitionId": {
            "type": "string",
            "description": "The partition identifier."
          },
          "mediaHostedLimitMax": {
            "type": "integer",
            "description": "The maximum hosted media limit in megabytes."
          },
          "pagesHostedLimitMax": {
            "type": "integer",
            "description": "The maximum hosted pages limit."
          },
          "mediaStreamedLimitMax": {
            "type": "integer",
            "description": "The maximum streamed media limit in megabytes."
          },
          "audioProcessedLimitMax": {
            "type": "integer",
            "description": "The maximum audio processing limit in minutes."
          },
          "pagesProcessedLimitMax": {
            "type": "integer",
            "description": "The maximum processed pages limit."
          },
          "videoProcessedLimitMax": {
            "type": "integer",
            "description": "The maximum video processing limit in minutes."
          },
          "mediaHostedLimitMonthly": {
            "type": "integer",
            "description": "The monthly hosted media limit in megabytes."
          },
          "pagesHostedLimitMonthly": {
            "type": "integer",
            "description": "The monthly hosted pages limit."
          },
          "mediaStreamedLimitMonthly": {
            "type": "integer",
            "description": "The monthly streamed media limit in megabytes."
          },
          "audioProcessedLimitMonthly": {
            "type": "integer",
            "description": "The monthly audio processing limit in minutes."
          },
          "pagesProcessedLimitMonthly": {
            "type": "integer",
            "description": "The monthly processed pages limit."
          },
          "videoProcessedLimitMonthly": {
            "type": "integer",
            "description": "The monthly video processing limit in minutes."
          }
        },
        "additionalProperties": false,
        "required": [
          "partitionId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": true,
        "description": "A Ragie partition."
      }
    },
    {
      "id": "ragie.update_partition",
      "service": "ragie",
      "name": "update_partition",
      "description": "Update a Ragie partition's description, metadata schema, and context-aware setting without recreating it.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "partitionId": {
            "type": "string",
            "description": "The partition identifier."
          },
          "description": {
            "type": "string",
            "description": "The updated partition description."
          },
          "contextAware": {
            "type": "boolean",
            "description": "Whether the partition should be context-aware after the update."
          },
          "metadataSchema": {
            "type": "object",
            "additionalProperties": true,
            "description": "A loose JSON object accepted by Ragie."
          }
        },
        "additionalProperties": false,
        "required": [
          "partitionId"
        ],
        "description": "Action input."
      },
      "outputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": true,
        "description": "A Ragie partition."
      }
    }
  ]
}
