feat(tools): enforce skill capabilities and secret scopes
This commit is contained in:
@@ -130,6 +130,7 @@ export function createGdriveTools(config: NonNullable<GdriveConfig>): Tool[] {
|
||||
name: 'drive.list',
|
||||
description:
|
||||
'List recent files from Google Drive. Returns id, name, type, modified time, size, owners, and link.',
|
||||
requiredSecretScopes: ['gdrive'],
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
@@ -199,6 +200,7 @@ export function createGdriveTools(config: NonNullable<GdriveConfig>): Tool[] {
|
||||
name: 'drive.search',
|
||||
description:
|
||||
'Search Google Drive files by name or content. Returns id, name, type, modified time, size, owners, and link.',
|
||||
requiredSecretScopes: ['gdrive'],
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
@@ -270,6 +272,7 @@ export function createGdriveTools(config: NonNullable<GdriveConfig>): Tool[] {
|
||||
name: 'drive.read',
|
||||
description:
|
||||
'Read the content of a Google Drive file. Exports Google Workspace files (Docs, Sheets, Slides) as plain text/CSV. Downloads regular text files directly. Use drive.list or drive.search to get file IDs.',
|
||||
requiredSecretScopes: ['gdrive'],
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user