list_workspace
Browse Databricks workspace directories to view files and folders. Specify a path to list contents for workspace navigation and organization.
Instructions
List Workspace directory contents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | / |
Implementation Reference
- tools/compute.py:110-114 (handler)The list_workspace function is defined here, decorated with @mcp.tool, and implements the logic to list workspace directory contents using a workspace client.
@mcp.tool def list_workspace(ctx: Context, path: str = "/") -> List[Dict[str, Any]]: """List Workspace directory contents""" w = get_workspace_client() return [obj.as_dict() for obj in w.workspace.list(path)]