gemini_listFiles
List previously uploaded files with pagination support on the MCP Gemini Server. Retrieve file metadata and a token for the next page using optional page size and token parameters.
Instructions
Lists files previously uploaded to the Gemini API. Supports pagination to handle large numbers of files. NOTE: This API is not supported on Vertex AI clients. It only works with Google AI Studio API keys. Returns a list of file metadata objects and potentially a token for the next page.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageSize | No | Optional. The maximum number of files to return per page. Defaults to 100 if not specified by the API, max 1000. | |
pageToken | No | Optional. A token received from a previous listFiles call to retrieve the next page of results. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"pageSize": {
"description": "Optional. The maximum number of files to return per page. Defaults to 100 if not specified by the API, max 1000.",
"exclusiveMinimum": 0,
"maximum": 1000,
"type": "integer"
},
"pageToken": {
"description": "Optional. A token received from a previous listFiles call to retrieve the next page of results.",
"minLength": 1,
"type": "string"
}
},
"type": "object"
}