Google Workspace

Write a Google Drive file

google_drive_upload · Changes data · Markdown

Writes a text file into a Drive folder; replacing one waits for the owner.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

Save the October returns report in My Drive.

Your agent callsgoogle_drive_upload$0.001 a call

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{
  "mailbox": "support@halversoncycle.example",
  "name": "october-returns.md",
  "content": "# Returns in October\n\n14 returns, 3 of them a Tabor."
}
What comes back
{
  "mailbox": "support@halversoncycle.example",
  "file": {
    "id": "1Zx8wV7uT6sR5qP4oN3mL2kJ1iH0gF9eD",
    "name": "october-returns.md",
    "size": 58,
    "folder": false,
    "type": "text/plain",
    "modified_at": "2026-10-14T08:00:00+00:00",
    "link": "https://drive.google.com/file/d/1Zx8wV7uT6sR5qP4oN3mL2kJ1iH0gF9eD/view",
    "replaced": false
  }
}

Use it when

The agent saves a report or a note where the team will look for it.

What it does

Write a text file (up to 4 MB) into a Drive folder (My Drive when folder_id is left out). If a file with that name exists the new one gets a " (1)" name, unless if_exists is replace (which waits for the owner's approval by default) or fail. $0.001.

What comes back

mailbox; file: id, name, size, type, modified_at, link and replaced. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
mailboxstringOne of the mailboxes the agent may act as; optional when only one is connected. Up to 254 characters.
nameRequiredstring1 to 200 characters.
contentRequiredstringUp to 4,000,000 characters.
folder_idstringUp to 200 characters.
if_existsstringOne of: rename,replace,fail. Default: rename.

The call

Over MCP, call google_drive_upload on https://api.conecto.chat/mcp/googleworkspace. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/google_drive_upload \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mailbox":"support@halversoncycle.example","name":"october-returns.md","content":"# Returns in October\n\n14 returns, 3 of them a Tabor."}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_connected409Google Workspace isn't connected yet.Connect it with google_connect.
not_allowed403The mailbox is not one the agent may act as.Use a connected mailbox; the owner adds one by connecting again.
vendor_rejected502Google refused: delegation is missing a scope, or Google said no.Ask the Workspace admin to grant what the message names.
conflict409A file with that name exists and if_exists is fail.Pick another name, or rename or replace.
too_large413The content is over 4 MB.Split it into smaller files.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md