gdrive_write_file
Google Drive · macOS · Windows
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
在同步的 Google Drive 文件夹中写入或覆盖文本文件;官方客户端会自动上传。首次调用返回预览;传入 confirm=true 才会写入。
必填输入
pathcontent
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — macOS
{
"properties": {
"confirm": {
"description": "Must be true to actually write",
"type": "boolean"
},
"content": {
"description": "Text content to write",
"type": "string"
},
"path": {
"description": "Absolute path under a Google Drive mount",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
}文档示例
gdrive_write_file 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"confirm": false,
"content": "Meeting agenda: review the launch checklist.",
"path": "/Users/demo/Library/CloudStorage/[email protected]/My Drive/Documents/meeting-notes.txt"
}Windows
用途
在同步的 Google Drive 文件夹中写入或覆盖文本文件;官方客户端会自动上传。首次调用返回预览;传入 confirm=true 才会写入。
必填输入
pathcontent
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — Windows
{
"properties": {
"confirm": {
"description": "Must be true to actually write",
"type": "boolean"
},
"content": {
"description": "Text content to write",
"type": "string"
},
"path": {
"description": "Absolute path under a Google Drive mount",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
}文档示例
gdrive_write_file 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"confirm": false,
"content": "Meeting agenda: review the launch checklist.",
"path": "Documents/meeting-notes.txt"
}