u
This commit is contained in:
@@ -61,11 +61,9 @@ export function createReadFileTool({ googleAuthId }) {
|
||||
return defineTool({
|
||||
name: 'read_file',
|
||||
description:
|
||||
'Read a file from the virtual filesystem (VFS). Paths are relative to the VFS root ' +
|
||||
'and use forward slashes, e.g. "labels/sheet1.png" or "image-pipeline.SKILL". ' +
|
||||
'Reading a SKILL file returns its `title` (first line) separately from the markdown `content`. ' +
|
||||
'Large files are windowed with seek/limit (lines, 0-indexed) and the result reports ' +
|
||||
'how many lines remain. Binary files cannot be read — use analyze_image for images.',
|
||||
'Read text file from VFS. Root-relative forward-slash paths. ' +
|
||||
'SKILL files return parsed title and markdown content. ' +
|
||||
'Windowed via seek/limit (0-indexed lines). Binary files not supported (use analyze_image for images).',
|
||||
strict: false,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
@@ -74,15 +72,15 @@ export function createReadFileTool({ googleAuthId }) {
|
||||
properties: {
|
||||
filename: {
|
||||
type: 'string',
|
||||
description: 'File path relative to the VFS root, using forward slashes (e.g. "image-pipeline.SKILL").',
|
||||
description: 'VFS file path.',
|
||||
},
|
||||
seek: {
|
||||
type: 'number',
|
||||
description: 'First line to return, 0-indexed. Default 0.',
|
||||
description: 'Line offset (0-indexed). Default 0.',
|
||||
},
|
||||
limit: {
|
||||
type: 'number',
|
||||
description: `Maximum number of lines to return. Default ${DEFAULT_LIMIT}, max ${MAX_LIMIT}.`,
|
||||
description: `Max lines to return. Default ${DEFAULT_LIMIT}, max ${MAX_LIMIT}.`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user