Google Docs

Create and edit Google Docs — reports, SOPs, briefs — in your SellerSheet workspace.

In short

write_doc_structured writes a whole document in one call — headings, paragraphs, lists, tables. The other Docs tools give your agent fine control over text, tables, images, headers, footers and styles.

In your daily workflow

Create the document

create_doc_in_folder creates a doc inside your workspace folder; get_doc and get_doc_text read one back.

Write it in one call

write_doc_structured takes a list of blocks and writes them in order — the fastest way to turn a week's numbers into a report.

Edit precisely

find_doc_text, replace_doc_text, insert_doc_text and delete_doc_range change text; insert_doc_table, set_doc_table_cell_text and insert_doc_image add tables and images; update_doc_text_style and update_doc_paragraph_style style it. doc_batch_update is the escape hatch.

Try asking

"Create a weekly performance report doc in my reports folder."

"Insert a 3-column table summarising my top ASINs."

Writing a document, both ways

The same tool and the same arguments — through your AI client, or from your own code.

MCP — you ask for the weekly report. Your agent pulls the numbers, then calls write_doc_structured.

In an AI client (MCP)

tools/call
{
  "name": "write_doc_structured",
  "arguments": {
    "documentId": "<your document id>",
    "blocks": [
      {
        "type": "heading",
        "text": "Week 42",
        "level": 1
      },
      {
        "type": "paragraph",
        "text": "Sales rose 12% week over week."
      }
    ]
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/write_doc_structured \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"documentId":"<your document id>","blocks":[{"type":"heading","text":"Week 42","level":1},{"type":"paragraph","text":"Sales rose 12% week over week."}]}'
Early access — the Tool API is open on request, contact us.

These tools change your document

The write tools change the document you name — never your Amazon account. A document must be yours: owned by you, shared with your Google account, or inside your workspace.

Tools on this page

Pulled from the catalog at build time, each with its own access label.

ToolAccessWhat it does
append_doc_textwriteAppend text to the end of the document body.
apply_doc_bulletswriteConvert paragraphs in a range into a bulleted or numbered list.
clear_docdestructiveDelete all content from the document body.
create_doc_footerwriteCreate a document footer and optionally fill it with initial text.
create_doc_headerwriteCreate a document header and optionally fill it with initial text.
create_doc_in_folderwriteCreate a new blank Google Doc inside a Drive folder.
delete_doc_rangedestructiveDelete a content range by index.
doc_batch_updatedestructiveEscape hatch: apply a raw Docs API batchUpdate Requests list.
find_doc_textreadFind every occurrence of a text substring and return its index ranges.
get_docreadGet the full Docs API document resource (body, headers, styles, revisionId).
get_doc_metadatareadGet document title, revisionId, and documentStyle.
get_doc_textreadExtract the plain text of the document body, table cells included (headers and footers are not).
insert_doc_headingwriteConvenience: insert a line of text and apply HEADING_{level}.
insert_doc_imagewriteInsert an inline image from a public URL.
insert_doc_page_breakwriteInsert a page break.
insert_doc_section_breakwriteInsert a section break (Docs adds a newline before it; not allowed inside a table, header or footer).
insert_doc_tablewriteInsert an empty table.
insert_doc_textwriteInsert text at a specific index.
remove_doc_bulletswriteRemove bullet/number glyphs from paragraphs in a range.
rename_docwriteRename a Google Doc via the Drive API.
replace_doc_textdestructiveFind and replace text across the entire document.
set_doc_table_cell_textdestructiveReplace the text content of a specific table cell.
style_doc_text_by_matchwriteFind every occurrence of `needle` and apply the given text style.
update_doc_document_stylewriteUpdate document-level properties: margins, page size, background.
update_doc_paragraph_stylewriteApply paragraph-level style to a range.
update_doc_text_stylewriteApply character-level text styles to an index range (from find_doc_text or get_doc).
write_doc_structureddestructiveBuild a document from a list of semantic blocks in ONE call.

FAQ

Where do the numbers come from?

From the Amazon tools and your synced reports — for example Sales analytics and Synced reports.

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude