Embed any file from My Drive (video, PDF...)
gsites_add_drive_fileInsert any Drive file into a Google Site by name using the generic Drive picker, keeping sharing unchanged unless link-viewer access is explicitly approved.
Instructions
Insert any Drive file by name through the generic Insert > Drive picker (the typed variants only cover Docs/Slides/Sheets/Forms/Charts/Calendar). Sites then asks whether to share the file with the site's audience: by default this tool answers 'No compartir' (does not change sharing). Pass share='link_viewer' ONLY when the user explicitly agreed to make the file viewable by anyone with the link.
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": {
"query": "<query>"
},
"name": "gsites_add_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Part of the file name | |
| share | No | none |