u
This commit is contained in:
@@ -3,6 +3,7 @@ import path from 'path';
|
||||
import { defineTool, ToolError } from 'libllmorbiter';
|
||||
import { isReadOnlyDatabasePath, prepareVfs } from './vfs.js';
|
||||
import { isSkillPath } from './skill.js';
|
||||
import { TOOL_DESCRIPTIONS, TOOL_PARAMETER_DESCRIPTIONS } from './prompts.js';
|
||||
|
||||
/**
|
||||
* rm — deletes a single file from the virtual filesystem (VFS).
|
||||
@@ -64,7 +65,7 @@ export function deleteVfsFile(vfsRoot, relPath) {
|
||||
export function createRmTool({ googleAuthId }) {
|
||||
return defineTool({
|
||||
name: 'rm',
|
||||
description: 'Delete single VFS file (e.g. specific artifact or SKILL file). Irreversible.',
|
||||
description: TOOL_DESCRIPTIONS.rm,
|
||||
strict: false,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
@@ -73,7 +74,7 @@ export function createRmTool({ googleAuthId }) {
|
||||
properties: {
|
||||
filename: {
|
||||
type: 'string',
|
||||
description: 'VFS file path to delete.',
|
||||
description: TOOL_PARAMETER_DESCRIPTIONS.rm.filename,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user