Tool Details: dlfs_tree

Basic Information

Tool Name:dlfs_tree
Asset Name:Tree of DLFS Drive
Description:Render a tab-indented text tree of a directory in a DLFS drive. Designed for LLM consumption — directories end with '/' and files are listed by name only. Set 'info': 'size' to append file sizes. Walk is capped by 'maxDepth' (default 3, max 10) and 'maxEntries' (default 500, max 5000); when the entries cap is hit the response sets truncated=true. Path may be omitted to walk from the drive root.
Adapter:dlfs
Asset Hash:0x83facd8457c4fae0701d37c9f7eb6390ce4a64daf16a2026b3c573de8abc4f33
Input
PropertyTypeDescription
drive*stringDrive name
maxDepthintegerMax depth to descend (default 3, max 10)
pathstringDirectory path within the drive (omit for the drive root)
maxEntriesintegerMax total entries before truncation (default 500, max 5000)
infostringOptional per-line annotation. 'size' appends a human-readable size to file lines.
Output
PropertyTypeDescription
truncatedbooleanTrue if the entries cap was reached and the walk stopped early.
treestringTab-indented text tree. Each line is one entry: '<tabs><name>' for files, '<tabs><name>/' for directories.

MCP Tool Usage Examples

This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:

JSON-RPC Call Example:

POST to https://venue-3.covia.ai/mcp

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dlfs_tree",
    "arguments": {
      "input": "your input here"
    }
  }
}
cURL Example:
curl -X POST https://venue-3.covia.ai/mcp \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "dlfs_tree",
      "arguments": {
        "input": "your input here"
      }
    }
  }'
Python Example:
import requests
import json

url = "https://venue-3.covia.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "dlfs_tree",
        "arguments": {
            "input": "your input here"
        }
    }
}

response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');

const url = 'https://venue-3.covia.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'dlfs_tree',
        arguments: {
            input: 'your input here'
        }
    }
};

fetch(url, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));

Asset Metadata

{
  "name": "Tree of DLFS Drive",
  "description": "Render a tab-indented text tree of a directory in a DLFS drive. Designed for LLM consumption — directories end with '/' and files are listed by name only. Set 'info': 'size' to append file sizes. Walk is capped by 'maxDepth' (default 3, max 10) and 'maxEntries' (default 500, max 5000); when the entries cap is hit the response sets truncated=true. Path may be omitted to walk from the drive root.",
  "creator": "Covia",
  "operation": {
    "adapter": "dlfs:tree",
    "toolName": "dlfs_tree",
    "input": {
      "type": "object",
      "properties": {
        "drive": { "type": "string", "description": "Drive name" },
        "path": { "type": "string", "description": "Directory path within the drive (omit for the drive root)" },
        "maxDepth": { "type": "integer", "description": "Max depth to descend (default 3, max 10)" },
        "maxEntries": { "type": "integer", "description": "Max total entries before truncation (default 500, max 5000)" },
        "info": { "type": "string", "enum": ["size"], "description": "Optional per-line annotation. 'size' appends a human-readable size to file lines." }
      },
      "required": ["drive"]
    },
    "output": {
      "type": "object",
      "properties": {
        "tree": { "type": "string", "description": "Tab-indented text tree. Each line is one entry: '<tabs><name>' for files, '<tabs><name>/' for directories." },
        "truncated": { "type": "boolean", "description": "True if the entries cap was reached and the walk stopped early." }
      }
    }
  }
}

Navigation

Back to adapter details

Back to all adapters

Back to index