@@ -99,7 +99,7 @@ func NewLsTool(permissions permission.Service, workingDir string, lsConfig confi
100 output, metadata, err := ListDirectoryTree(searchPath, params, lsConfig)
100 output, metadata, err := ListDirectoryTree(searchPath, params, lsConfig)
101 if err != nil {
101 if err != nil {
102− return fantasy.ToolResponse{}, err
102+ return fantasy.NewTextErrorResponse(err.Error()), err
105 return fantasy.WithResponseMetadata(
105 return fantasy.WithResponseMetadata(