Skip to main content
Glama

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
NameRequiredDescriptionDefault

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: {}, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dedcode14/DedcodeMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server