Embed a Google Drive file or calendar
gsites_add_drive_itemEmbed Drive docs, slides, sheets, forms, charts, or calendars into Google Sites by searching and inserting the first result after the selected section.
Instructions
Embed a file from the user's Google Drive: kind = docs | slides | sheets | forms | charts | calendar. 'query' searches the Drive (for calendar it filters the user's calendars) and the FIRST result is inserted, so use a specific query. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"query": "<query>"
},
"name": "gsites_add_drive_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| query | Yes | Search text, e.g. the file name |