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)
{
"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."}]}'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.
| Tool | Access | What it does |
|---|---|---|
append_doc_text | write | Append text to the end of the document body. |
apply_doc_bullets | write | Convert paragraphs in a range into a bulleted or numbered list. |
clear_doc | destructive | Delete all content from the document body. |
create_doc_footer | write | Create a document footer and optionally fill it with initial text. |
create_doc_header | write | Create a document header and optionally fill it with initial text. |
create_doc_in_folder | write | Create a new blank Google Doc inside a Drive folder. |
delete_doc_range | destructive | Delete a content range by index. |
doc_batch_update | destructive | Escape hatch: apply a raw Docs API batchUpdate Requests list. |
find_doc_text | read | Find every occurrence of a text substring and return its index ranges. |
get_doc | read | Get the full Docs API document resource (body, headers, styles, revisionId). |
get_doc_metadata | read | Get document title, revisionId, and documentStyle. |
get_doc_text | read | Extract the plain text of the document body, table cells included (headers and footers are not). |
insert_doc_heading | write | Convenience: insert a line of text and apply HEADING_{level}. |
insert_doc_image | write | Insert an inline image from a public URL. |
insert_doc_page_break | write | Insert a page break. |
insert_doc_section_break | write | Insert a section break (Docs adds a newline before it; not allowed inside a table, header or footer). |
insert_doc_table | write | Insert an empty table. |
insert_doc_text | write | Insert text at a specific index. |
remove_doc_bullets | write | Remove bullet/number glyphs from paragraphs in a range. |
rename_doc | write | Rename a Google Doc via the Drive API. |
replace_doc_text | destructive | Find and replace text across the entire document. |
set_doc_table_cell_text | destructive | Replace the text content of a specific table cell. |
style_doc_text_by_match | write | Find every occurrence of `needle` and apply the given text style. |
update_doc_document_style | write | Update document-level properties: margins, page size, background. |
update_doc_paragraph_style | write | Apply paragraph-level style to a range. |
update_doc_text_style | write | Apply character-level text styles to an index range (from find_doc_text or get_doc). |
write_doc_structured | destructive | Build 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.