listar_archivos
Lists all files in the sandbox directory for the DedcodeMCP File Manager, enabling users to view and manage their stored documents.
Instructions
Lista todos los archivos en el sandbox
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.ts:314-337 (handler)Handler for 'listar_archivos' tool: reads directory recursively from DESKTOP_DIR, lists files or reports empty.case "listar_archivos": { const archivos = await fs.readdir(DESKTOP_DIR, { recursive: true }); if (archivos.length === 0) { return { content: [ { type: "text", text: "No hay archivos en el escritorio", }, ], }; } const lista = archivos.join("\n- "); return { content: [ { type: "text", text: `Archivos en el escritorio:\n- ${lista}`, }, ], }; }
- main.ts:152-159 (registration)Tool registration in ListTools handler, including name, description, and empty input schema.{ name: "listar_archivos", description: "Lista todos los archivos en el sandbox", inputSchema: { type: "object", properties: {}, }, },