File Update

Rename, move, trash or restore one Google Drive file.

by Google DriveRequires connected account$0.0025 per request · $0.25 per 100 requests

Example

You ask your agent

“Restore my “Scrollport Google verification document” from the Google Drive bin.”

You get

Name
Scrollport Google verification document
Trashed
No
Web view link
https://docs.google.com/document/d/file-output-id/edit?usp=drivesdk
What your agent sends and gets back (JSON)

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

Request

{
  "tool_id": "google-drive.file-update",
  "input": {
    "body": {
      "trashed": false
    },
    "path": {
      "fileId": "YOUR-GOOGLE-DRIVE-FILE-ID"
    },
    "query": {
      "fields": "id,name,trashed,parents,webViewLink"
    }
  }
}

Response

{
  "id": "file-output-id",
  "name": "Scrollport Google verification document",
  "parents": [
    "0AExampleFolderId"
  ],
  "trashed": false,
  "webViewLink": "https://docs.google.com/document/d/file-output-id/edit?usp=drivesdk"
}

Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use File Update (tool ID: google-drive.file-update). Ask me for the details you need, then show me the result. Help me connect the required app account if needed.

Your agent will also help you connect your app account the first time.

No agent yet? Create your account on the web and connect one from your dashboard later.

Other tools for this job

Compare all 14 →

Questions

Is File Update by Google Drive free?

Scrollport has no free tier: it costs $0.0025 per request ($0.25 per 100 requests), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

Do I need my own Google account?

Yes. It works in the Google account you connect to Scrollport, with the access you approve. Scrollport does not provide Google accounts.

Details

About this tool

Patches only name or trashed state and the single-parent move parameters; it never permanently deletes a file. Always one upstream request at $0.0025.

All inputs and outputs

Input

bodyobject · optional

Bounded request body sent to the connected application.

pathobject · required

Identifier path for the authorised connected-app record.

queryobject · optional

Search terms used to find relevant records.

Output

idstring

Identifier of the record.

namestring

Name of the record.

parentsarray
trashedboolean
webViewLinkstring
Errors and limits
  • connection_required: This capability acts on the connected Google Workspace, which is not available yet.Open connect_url, approve Google Drive access, then retry this run unchanged.