# Mosaic + Google Docs Integrations: Connect with Zapier MCP
> zapier.com/apps/mosaic/integrations/google-docs
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Mosaic and Google Docs in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · append`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "google-docs", owner: "me" });

const { data } = await zapier.runAction({
  app: "google-docs",
  actionType: "write",
  action: "append",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action google-docs write append \
  --inputs '{}'
```

## Mosaic

### Identity
Mosaic maximizes companies' efficiency and profitability by automating the planning, management, and tracking of time

- App slug: mosaic
- Operations published here: 60 (7 events, 53 functions)

### Authentication
Zapier connects to Mosaic via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection mosaic
```

### Capabilities

#### Events (7)

Events fire when something happens in Mosaic. Use them to start a run.

##### Create Cost Rate
Triggers when a new Cost Rate is created.

- Type: read · Key: `create_cost_rate`
- Requires: nothing
- SDK: `runAction({ app: "mosaic", actionType: "read", action: "create_cost_rate" })`
- CLI: `npx zapier-sdk run-action mosaic read create_cost_rate`

##### Get Rate Groups
Fetches all rate groups in team

- Type: read · Key: `get_rate_groups`
- Requires: nothing
- SDK: `runAction({ app: "mosaic", actionType: "read", action: "get_rate_groups" })`
- CLI: `npx zapier-sdk run-action mosaic read get_rate_groups`

##### Get Time Entries
Gets a list of time entries on specific member, project, phase, work category, or date range

- Type: read · Key: `get_time_entries`
- Requires: nothing
- Optional: start_date, end_date, clients, project_ids, phase_names, standard_work_category_ids, employee_ids, billable, statuses, created_by_integrations
- SDK: `runAction({ app: "mosaic", actionType: "read", action: "get_time_entries" })`
- CLI: `npx zapier-sdk run-action mosaic read get_time_entries`

##### Get Work Plans
Gets a list of all work plans, can specify projects, phases and/or work categories

- Type: read · Key: `get_work_plans`
- Requires: nothing
- Optional: all, end_date, limit, max_daily_hours, max_total_hours, member_ids, min_daily_hours, min_total_hours, offset, phase_ids, project_ids, standard_work_category_ids, start_date
- SDK: `runAction({ app: "mosaic", actionType: "read", action: "get_work_plans" })`
- CLI: `npx zapier-sdk run-action mosaic read get_work_plans`

##### New Check In
Triggers when a new check in is created.

- Type: read · Key: `new_check_in`
- Requires: nothing
- Optional: portfolio_id, project_id, employee_id
- SDK: `runAction({ app: "mosaic", actionType: "read", action: "new_check_in" })`
- CLI: `npx zapier-sdk run-action mosaic read new_check_in`

##### New Task
Triggers when a new task is created.

- Type: read · Key: `new_task`
- Requires: nothing
- Optional: portfolio_id, project_id, employee_id
- SDK: `runAction({ app: "mosaic", actionType: "read", action: "new_task" })`
- CLI: `npx zapier-sdk run-action mosaic read new_task`

##### New Time Entry
Triggers when a time entry is submitted.

- Type: read · Key: `new_time_entry`
- Requires: nothing
- Optional: portfolio_id, project_id, employee_id
- SDK: `runAction({ app: "mosaic", actionType: "read", action: "new_time_entry" })`
- CLI: `npx zapier-sdk run-action mosaic read new_time_entry`

#### Functions (53)

Functions change something in Mosaic.

##### Batch Delete Project Scopes
Deletes a Project Scope in batch from the system

- Type: write · Key: `batch_delete_project_scopes`
- Requires: scope_ids
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "batch_delete_project_scopes" })`
- CLI: `npx zapier-sdk run-action mosaic write batch_delete_project_scopes`

##### Create Check In
Creates a Check In

- Type: write · Key: `create_check_in`
- Requires: portfolio_id, project_id, employee_id, title, date
- Optional: estimated_hours, phase_id, work_category_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_check_in" })`
- CLI: `npx zapier-sdk run-action mosaic write create_check_in`

##### Create Cost Rate
Creates a cost rate in the system

- Type: write · Key: `create_cost_rates`
- Requires: member_id, active_rate_type, description, actual_hourly_rate
- Optional: annual_rate, hours_per_year, hourly_rate, overhead_factor, start_date, end_date
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_cost_rates" })`
- CLI: `npx zapier-sdk run-action mosaic write create_cost_rates`

##### Create Department
Creates a department in the system

- Type: write · Key: `create_department`
- Requires: name
- Optional: description
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_department" })`
- CLI: `npx zapier-sdk run-action mosaic write create_department`

##### Create Employee
Creates a member on Mosaic

- Type: write · Key: `create_employee`
- Requires: email
- Optional: first_name, last_name
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_employee" })`
- CLI: `npx zapier-sdk run-action mosaic write create_employee`

##### Create Entity Rate
Creates an Entity Rate in the system

- Type: write · Key: `create_entity_rate`
- Requires: entity_id, entity_type, rate_group_id, team_id
- Optional: end_date, is_cost_rate, override_unassigned_member_rates, rate_amount, rate_id, start_date
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_entity_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write create_entity_rate`

##### Create Holiday
Creates a holiday in the system

- Type: write · Key: `create_holiday`
- Requires: end_date, start_date
- Optional: all_day, daily_hours, title
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_holiday" })`
- CLI: `npx zapier-sdk run-action mosaic write create_holiday`

##### Create Invoice
Creates an Invoice in the system

- Type: write · Key: `create_invoice`
- Requires: invoice_type, phase_id, project_id
- Optional: amount, billing_category_id, invoice_date, invoice_number, notes, percentage, period_end, period_start
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_invoice" })`
- CLI: `npx zapier-sdk run-action mosaic write create_invoice`

##### Create Member Project Rate
Creates a member project rate in the system

- Type: write · Key: `create_member_project_rate`
- Requires: member_id, project_id
- Optional: end_date, is_cost_rate, phase_id, rate_amount, rate_id, start_date
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_member_project_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write create_member_project_rate`

##### Create Member Project Roles
Creates a Member Project Role

- Type: write · Key: `create_member_project_roles`
- Requires: member_id, project_id, role_id
- Optional: phase_id, start_date, end_date, override_phase_member_positions
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_member_project_roles" })`
- CLI: `npx zapier-sdk run-action mosaic write create_member_project_roles`

##### Create Member Role
Creates a Member Roles in the system

- Type: write · Key: `create_member_role`
- Requires: member_id, role_id
- Optional: end_date, override_member_positions, start_date
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_member_role" })`
- CLI: `npx zapier-sdk run-action mosaic write create_member_role`

##### Create Notification
Creates a Notification in the system

- Type: write · Key: `create_notification`
- Requires: message, member_ids
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_notification" })`
- CLI: `npx zapier-sdk run-action mosaic write create_notification`

##### Create Office
Creates an Office in the system

- Type: write · Key: `create_office`
- Requires: nothing
- Optional: address_1, address_2, address_3, city, country, name, state, zip
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_office" })`
- CLI: `npx zapier-sdk run-action mosaic write create_office`

##### Create Phase
Creates a phase under a project

- Type: write · Key: `create_phase`
- Requires: name, project_id
- Optional: billable, billing_type, budget_fixed_fee_with, budget_hourly_with, budget_internal_with, budget_phase_by, dependable_phase_id, dependency_type, end_date, estimated_cost, estimated_hours, fee_type, is_budget, is_main, move_after_phase_id, parent_id, phase_number, profit_percentage, rate_group_id, rate_multiplier, start_date, total
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_phase" })`
- CLI: `npx zapier-sdk run-action mosaic write create_phase`

##### Create Portfolio
Creates a portfolio, can be personal or private

- Type: write · Key: `create_portfolio`
- Requires: is_private, name
- Optional: is_personal
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_portfolio" })`
- CLI: `npx zapier-sdk run-action mosaic write create_portfolio`

##### Create Project
Creates a project, including project name, project number, start and end date, budget information, etc.

- Type: write · Key: `create_project`
- Requires: portfolio_id, title
- Optional: billable, billing_type, client, description, end_date, rate_group_id, rate_multiplier, project_number, start_date, total
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_project" })`
- CLI: `npx zapier-sdk run-action mosaic write create_project`

##### Update Project Membership
Updates a Project Membership in the system

- Type: write · Key: `create_project_memebership`
- Requires: project_id, member_id
- Optional: permission_level
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_project_memebership" })`
- CLI: `npx zapier-sdk run-action mosaic write create_project_memebership`

##### Create Pto
Creates a Pto in the system

- Type: write · Key: `create_pto`
- Requires: name
- Optional: hours, is_accrued, is_custom
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_pto" })`
- CLI: `npx zapier-sdk run-action mosaic write create_pto`

##### Create Standard Rate
Creates a Standard Rate in the system

- Type: write · Key: `create_standard_rate`
- Requires: rate
- Optional: description, multiplier_high, multiplier_low
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_standard_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write create_standard_rate`

##### Create Standard Role
Creates a Standard Role in the system

- Type: write · Key: `create_standard_role`
- Requires: name
- Optional: description
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_standard_role" })`
- CLI: `npx zapier-sdk run-action mosaic write create_standard_role`

##### Create Standard Work Category
Creates a standard work category under a team

- Type: write · Key: `create_standard_work_category`
- Requires: title
- Optional: archived, billable, require_title
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_standard_work_category" })`
- CLI: `npx zapier-sdk run-action mosaic write create_standard_work_category`

##### Create Time Entry
Creates a Time Entry

- Type: write · Key: `create_time_entry`
- Requires: portfolio_id, project_id, phase_id, employee_id, work_category_id, title, date, hours
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_time_entry" })`
- CLI: `npx zapier-sdk run-action mosaic write create_time_entry`

##### Create Work Plan
Creates a work plan under a team

- Type: write · Key: `create_work_plan`
- Requires: nothing
- Optional: daily_hours, description, end_date, member_id, phase_id, project_id, standard_work_category_id, start_date, total_hours
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "create_work_plan" })`
- CLI: `npx zapier-sdk run-action mosaic write create_work_plan`

##### Delete Cost Rate
Deletes a Cost Rate from the system

- Type: write · Key: `delete_cost_rate`
- Requires: cost_rate_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_cost_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_cost_rate`

##### Delete Department
Deletes a Department from the system

- Type: write · Key: `delete_department`
- Requires: department_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_department" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_department`

##### Delete Entity Rate
Deletes an Entity Rate from the system

- Type: write · Key: `delete_entity_rate`
- Requires: entity_rate_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_entity_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_entity_rate`

##### Delete Member Project Rate
Deletes a Member Project Rate from the system

- Type: write · Key: `delete_member_project_rate`
- Requires: member_project_rate_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_member_project_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_member_project_rate`

##### Delete Phase
Deletes a phase, if there is time spent on the phase it will be archived. This call responds Asynchronously.

- Type: write · Key: `delete_phase`
- Requires: id, project_id
- Optional: force_archive, force_destroy, recursive
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_phase" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_phase`

##### Delete Project
Deletes a project, if there is time spent on the project it will be archived

- Type: write · Key: `delete_project`
- Requires: project_id
- Optional: force_archive, force_destroy
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_project" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_project`

##### Delete Standard Rate
Deletes a Standard Rate from the system

- Type: write · Key: `delete_standard_rate`
- Requires: rate_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_standard_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_standard_rate`

##### Delete Standard Role
Deletes a Standard from the system

- Type: write · Key: `delete_standard_role`
- Requires: standard_role_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_standard_role" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_standard_role`

##### Delete Task
Deletes a Task for a Project

- Type: write · Key: `delete_task`
- Requires: task_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_task" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_task`

##### Delete Time Entries
Deletes one or multiple time entries

- Type: write · Key: `delete_time_entries`
- Requires: time_entry_ids
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_time_entries" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_time_entries`

##### Delete Work Plan
Deletes a specific work plan

- Type: write · Key: `delete_work_plan`
- Requires: nothing
- Optional: id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "delete_work_plan" })`
- CLI: `npx zapier-sdk run-action mosaic write delete_work_plan`

##### Create Task
Creates a Task for a Project

- Type: write · Key: `new_task`
- Requires: portfolio_id, project_id, description
- Optional: estimated_hours, schedule_start, schedule_end, assignee_ids
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "new_task" })`
- CLI: `npx zapier-sdk run-action mosaic write new_task`

##### Update Entity Rate
Updates an Entity Rate in the system

- Type: write · Key: `upadate_entity_rate`
- Requires: entity_rate_id
- Optional: end_date, is_cost_rate, override_unassigned_member_rates, rate_amount, rate_group_id, rate_id, start_date
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "upadate_entity_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write upadate_entity_rate`

##### Update Cost Rate
Updates a Cost Rate in the system

- Type: write · Key: `update_cost_rate`
- Requires: cost_rate_id, active_rate_type, description, actual_hourly_rate
- Optional: annual_rate, hours_per_year, hourly_rate, overhead_factor, start_date, end_date
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_cost_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write update_cost_rate`

##### Update Department
Updates a Department in the system

- Type: write · Key: `update_department`
- Requires: department_id
- Optional: name, description
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_department" })`
- CLI: `npx zapier-sdk run-action mosaic write update_department`

##### Update Employee
Updates a member's first name, last name and email

- Type: write · Key: `update_employee`
- Requires: member_id
- Optional: email, first_name, last_name
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_employee" })`
- CLI: `npx zapier-sdk run-action mosaic write update_employee`

##### Update Invoice
Updates an Invoice in the system

- Type: write · Key: `update_invoice`
- Requires: invoice_id, project_id
- Optional: amount, billing_category_id, invoice_date, invoice_number, invoice_type, notes, percentage, period_end, period_start, phase_id
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_invoice" })`
- CLI: `npx zapier-sdk run-action mosaic write update_invoice`

##### Update Member Project Rate
Updates a Member Project Rate in the system

- Type: write · Key: `update_member_project_rate`
- Requires: member_project_rate_id
- Optional: end_date, rate_amount, rate_id, start_date
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_member_project_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write update_member_project_rate`

##### Update Member Project Roles
Updates a Member Project Role in the system

- Type: write · Key: `update_member_project_roles`
- Requires: member_project_role_id
- Optional: role_id, start_date, end_date, override_phase_member_positions
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_member_project_roles" })`
- CLI: `npx zapier-sdk run-action mosaic write update_member_project_roles`

##### Update Member Role
Updates a Member Roles in the system

- Type: write · Key: `update_member_role`
- Requires: member_role_id
- Optional: end_date, override_member_positions, role_id, start_date
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_member_role" })`
- CLI: `npx zapier-sdk run-action mosaic write update_member_role`

##### Update Office
Updates an Office in the system

- Type: write · Key: `update_office`
- Requires: office_id
- Optional: name
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_office" })`
- CLI: `npx zapier-sdk run-action mosaic write update_office`

##### Update Phase
Updates a phase in a project

- Type: write · Key: `update_phase`
- Requires: phase_id, name, project_id
- Optional: billable, billing_type, budget_fixed_fee_with, budget_hourly_with, budget_internal_with, budget_phase_by, dependable_phase_id, dependency_type, end_date, estimated_cost, estimated_hours, fee_type, is_budget, is_main, move_action, move_after_phase_id, parent_id, phase_number, profit_percentage, rate_group_id, rate_multiplier, start_date, total
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_phase" })`
- CLI: `npx zapier-sdk run-action mosaic write update_phase`

##### Update Portfolio
Updates a portfolio, including name, private or not, archived or not

- Type: write · Key: `update_portfolio`
- Requires: is_private, name, portfolio_id
- Optional: archive, unarchive
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_portfolio" })`
- CLI: `npx zapier-sdk run-action mosaic write update_portfolio`

##### Update Project
Updates a project, including project name, project number, start and end date, budget information, etc.

- Type: write · Key: `update_project`
- Requires: project_id
- Optional: apply_billing_type_and_rate_group_to_phases, apply_rate_multiplier_to_phases, billable, billing_type, client, description, end_date, portfolio_id, project_number, rate_group_id, rate_multiplier, start_date, title, total
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_project" })`
- CLI: `npx zapier-sdk run-action mosaic write update_project`

##### Update Pto
Updates a Pto in the system

- Type: write · Key: `update_pto`
- Requires: pto_id
- Optional: hours, is_accrued, name
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_pto" })`
- CLI: `npx zapier-sdk run-action mosaic write update_pto`

##### Update Standard Rate
Updates a Standard Rate in the system

- Type: write · Key: `update_standard_rate`
- Requires: rate_id
- Optional: description, merge_rate_id, multiplier_high, multiplier_low, rate
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_standard_rate" })`
- CLI: `npx zapier-sdk run-action mosaic write update_standard_rate`

##### Update Standard Role
Updates a Standard Role in the system

- Type: write · Key: `update_standard_role`
- Requires: standard_role_id
- Optional: name, description
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_standard_role" })`
- CLI: `npx zapier-sdk run-action mosaic write update_standard_role`

##### Update Standard Work Category
Updates a standard work category under a team

- Type: write · Key: `update_standard_work_category`
- Requires: standard_work_category_id
- Optional: archived, billable, require_title, title
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_standard_work_category" })`
- CLI: `npx zapier-sdk run-action mosaic write update_standard_work_category`

##### Update Time Entry
Updates one or more time entries, including members, hours, date, project, phase, etc.

- Type: write · Key: `update_time_entry`
- Requires: description, standard_work_category_id, time_entry_id
- Optional: is_billable, cost_rate, date, description_id, hours, member_id, phase_id, project_id, rate, status
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_time_entry" })`
- CLI: `npx zapier-sdk run-action mosaic write update_time_entry`

##### Update Work Plan
Updates a specific work plan

- Type: write · Key: `update_work_plan`
- Requires: id
- Optional: daily_hours, description, end_date, member_id, phase_id, project_id, standard_work_category_id, start_date, total_hours
- SDK: `runAction({ app: "mosaic", actionType: "write", action: "update_work_plan" })`
- CLI: `npx zapier-sdk run-action mosaic write update_work_plan`

## Google Docs

### Identity
Google Docs is an online word processor that lets you create and format text documents. Collaboratively edit documents with other people in real time.

We also support Google Sheets!

- App slug: google-docs
- Operations published here: 18 (3 events, 10 functions, 4 queries, 1 search-or-write action)

### Authentication
Zapier connects to Google Docs via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection google-docs
```

### Capabilities

#### Events (3)

Events fire when something happens in Google Docs. Use them to start a run.

##### New Document
Triggers when a new document is added (inside any folder).

- Type: read · Key: `document`
- Requires: nothing
- SDK: `runAction({ app: "google-docs", actionType: "read", action: "document" })`
- CLI: `npx zapier-sdk run-action google-docs read document`

##### New Document in Folder
Triggers when a new document is added to a specific folder (but not its subfolders).

- Type: read · Key: `document_in_folder`
- Requires: nothing
- Optional: drive, folder
- SDK: `runAction({ app: "google-docs", actionType: "read", action: "document_in_folder" })`
- CLI: `npx zapier-sdk run-action google-docs read document_in_folder`

##### Updated Document
Triggers when a specific document is updated.

- Type: read · Key: `document_updated`
- Requires: document_id
- SDK: `runAction({ app: "google-docs", actionType: "read", action: "document_updated" })`
- CLI: `npx zapier-sdk run-action google-docs read document_updated`

#### Functions (10)

Functions change something in Google Docs.

##### Append Text to Document
Appends text to an existing document.

- Type: write · Key: `append`
- Requires: file, text
- Optional: drive, folder, newline
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "append" })`
- CLI: `npx zapier-sdk run-action google-docs write append`

##### Create Document From Template
Creates a new doc based on an existing one and can replace any placeholder variables found in your template doc, like {{name}}, {{email}}, etc.

- Type: write · Key: `create_from_template`
- Requires: file, title
- Optional: template_drive, template_folder, drive, folder, sharing_preference, domain, empty_fields_preference, export_formats, image, image_segmentId, image_index, image_tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "create_from_template" })`
- CLI: `npx zapier-sdk run-action google-docs write create_from_template`

##### Upload Document
Copy an already-existing file from another service to Docs. Will convert the file to Google Doc format if possible.

- Type: write · Key: `document`
- Requires: file
- Optional: title, drive, folder
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "document" })`
- CLI: `npx zapier-sdk run-action google-docs write document`

##### Find and Replace Text
Find and replace text in a Google Doc with case sensitivity support.

- Type: write · Key: `find_and_replace`
- Requires: document_id, find_text
- Optional: replace_text, match_case
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "find_and_replace" })`
- CLI: `npx zapier-sdk run-action google-docs write find_and_replace`

##### Format Text
Format text in a Google Doc with bold, italic, colors, links, and other styling options.

- Type: write · Key: `format_text`
- Requires: documentId, startIndex, endIndex
- Optional: formattingOptions, linkUrl, fontSize, fontFamily, textColor, backgroundColor, segmentId, tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "format_text" })`
- CLI: `npx zapier-sdk run-action google-docs write format_text`

##### Insert Image
Insert an image at a specific position in a Google Doc.

- Type: write · Key: `insert_image`
- Requires: documentId, imageUri, index
- Optional: width, height, segmentId, tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "insert_image" })`
- CLI: `npx zapier-sdk run-action google-docs write insert_image`

##### Insert Text
Insert text at a specific position in a Google Doc.

- Type: write · Key: `insert_text`
- Requires: documentId, text, index
- Optional: segmentId, tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "insert_text" })`
- CLI: `npx zapier-sdk run-action google-docs write insert_text`

##### Create Document From Text
Create a new document from text. Also supports limited HTML.

- Type: write · Key: `newtxtdocument`
- Requires: title, file
- Optional: drive, folder, export_formats, image, image_segmentId, image_index, image_tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "newtxtdocument" })`
- CLI: `npx zapier-sdk run-action google-docs write newtxtdocument`

##### Replace Image
Replace an existing image in a Google Doc with a new one.

- Type: write · Key: `replace_image_v0`
- Requires: documentId, imageObjectId, imageUri
- Optional: tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "replace_image_v0" })`
- CLI: `npx zapier-sdk run-action google-docs write replace_image_v0`

##### Update Document Properties
Update document properties like background color, margins, and page settings in a Google Doc.

- Type: write · Key: `update_document_properties`
- Requires: documentId
- Optional: backgroundColor, pageWidth, pageHeight, marginTop, marginBottom, marginLeft, marginRight, pageNumberStart, useFirstPageHeaderFooter, useEvenPageHeaderFooter
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "update_document_properties" })`
- CLI: `npx zapier-sdk run-action google-docs write update_document_properties`

#### Queries (4)

Queries read from Google Docs and return data. They change nothing.

##### Find a Document
Search for a specific document by name.

- Type: search · Key: `document`
- Requires: title
- Optional: drive, folder
- SDK: `runAction({ app: "google-docs", actionType: "search", action: "document" })`
- CLI: `npx zapier-sdk run-action google-docs search document`

##### Find Text in Document
Find text in a Google Doc and return its start and end position indexes. Use with Format Text to apply formatting or links to specific text.

- Type: search · Key: `find_text`
- Requires: documentId, searchText
- Optional: matchCase, returnAllMatches
- SDK: `runAction({ app: "google-docs", actionType: "search", action: "find_text" })`
- CLI: `npx zapier-sdk run-action google-docs search find_text`

##### Get Document Content
Retrieves the full content and metadata of a Google Doc by ID.

- Type: search · Key: `get_document_content`
- Requires: document_id
- SDK: `runAction({ app: "google-docs", actionType: "search", action: "get_document_content" })`
- CLI: `npx zapier-sdk run-action google-docs search get_document_content`

##### Get Document Tabs Content
Retrieves the full content and metadata of a Google Doc with tabs information by ID.

- Type: search · Key: `get_document_tabs_content`
- Requires: document_id
- SDK: `runAction({ app: "google-docs", actionType: "search", action: "get_document_tabs_content" })`
- CLI: `npx zapier-sdk run-action google-docs search get_document_tabs_content`

#### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

##### Find or Create Document
Finds or creates a specific document.

- Type: search_or_write · Key: `document`
- Requires: title, file
- Optional: drive, folder, export_formats, image, image_segmentId, image_index, image_tabId
- SDK: `runAction({ app: "google-docs", actionType: "search_or_write", action: "document" })`
- CLI: `npx zapier-sdk run-action google-docs search_or_write document`

## Links
- Mosaic integrations: zapier.com/apps/mosaic/integrations.md
- Google Docs integrations: zapier.com/apps/google-docs/integrations.md
- Full page: zapier.com/apps/mosaic/integrations/google-docs
- SDK: npmjs.com/package/@zapier/zapier-sdk