Write a Google Drive file
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.
{
"mailbox": "support@halversoncycle.example",
"name": "october-returns.md",
"content": "# Returns in October\n\n14 returns, 3 of them a Tabor."
}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
| Name | Type | What it is |
|---|---|---|
mailbox | string | One of the mailboxes the agent may act as; optional when only one is connected. Up to 254 characters. |
nameRequired | string | 1 to 200 characters. |
contentRequired | string | Up to 4,000,000 characters. |
folder_id | string | Up to 200 characters. |
if_exists | string | One of: rename,replace,fail. Default: rename. |
The call
Over MCP, call google_drive_upload on https://api.conecto.chat/mcp/googleworkspace. Over REST:
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.
| Code | When | What to do |
|---|---|---|
not_connected409 | Google Workspace isn't connected yet. | Connect it with google_connect. |
not_allowed403 | The mailbox is not one the agent may act as. | Use a connected mailbox; the owner adds one by connecting again. |
vendor_rejected502 | Google refused: delegation is missing a scope, or Google said no. | Ask the Workspace admin to grant what the message names. |
conflict409 | A file with that name exists and if_exists is fail. | Pick another name, or rename or replace. |
too_large413 | The content is over 4 MB. | Split it into smaller files. |
More Google Workspace tools
All 11 tools- Connect Google Workspace
google_connectConnects the company's Google Workspace through its own service account, for the mailboxes the agent may act as.Free - Search Gmail
google_mail_searchThe newest messages in a mailbox, or those matching a Gmail search.Free* - Read a Gmail message
google_mail_readOne message in full, with its body as text and its attachments' names.Free* - Send Gmail
google_mail_sendSends an email, or a reply in the same thread, as one of the company's mailboxes.$0.001 a call - Read a Google Calendar
google_calendar_eventsThe events in a mailbox's calendar between two times, in UTC.Free* - Add a Google Calendar event
google_calendar_createAdds an event to a mailbox's calendar and invites its attendees, with a Meet link if asked.$0.001 a call - Cancel a Google Calendar event
google_calendar_cancelCancels an event and tells its attendees; waits for the owner by default.$0.001 a call - Search Google Drive
google_drive_searchFiles in a mailbox user's Drive, shared drives included, whose words match.Free*
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md