Zum Inhalt
Für Agenten

drive_search

Search Files in a Drive

Markdown Tools als JSON

Beschreibung

Case-insensitive substring match on file names within a single drive. Same query the in-app search box runs. Returns up to 100 live files sorted by updated_at DESC. Does NOT search folder names or file contents.

Zugriff

Zugriffsprofil: gated. Module: files. Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.

Parameter

Name Typ Pflicht Beschreibung
account_id string Ja
drive_id string Ja
q string Ja Substring to match on file name. Case-insensitive.

Eingabeschema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "drive_id": {
      "type": "string"
    },
    "q": {
      "type": "string",
      "minLength": 1,
      "description": "Substring to match on file name. Case-insensitive."
    }
  },
  "required": [
    "account_id",
    "drive_id",
    "q"
  ],
  "type": "object"
}

Ausgabeschema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "drive_id": {
      "type": "string"
    },
    "q": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "truncated": {
      "type": "boolean",
      "description": "True when the result was capped at 100 rows."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "byte_size": {
            "type": "integer"
          },
          "folder_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "path": {
            "type": "string"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  },
  "required": [
    "drive_id",
    "q",
    "count",
    "truncated",
    "results"
  ],
  "type": "object"
}
Seiten