googleDocs.insertText insert text at a document index.
Example
Inputs
Providedocument, a positive index, and non-empty text. tabId and revision controls are optional. A second argument with account selects a Google Account.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Insert text at a document index.
googleDocs.insertText insert text at a document index.
import { automation, onDashboardRun } from "automate.ax"
import { googleDocs } from "automate.ax/google-docs"
export default automation("Insert text", () => {
onDashboardRun({ title: "Insert text" })
googleDocs.insertText({
document: "document-id",
index: 1,
text: "Executive summary\n",
})
})
document, a positive index, and non-empty text. tabId and revision controls are optional. A second argument with account selects a Google Account.