Open Agent Loops
API Reference

formatGlobMatches

@open-agent-loops/core


function formatGlobMatches(paths): string;

Defined in: tools/builtin/file-read.ts:133

Render glob matches into the single text block handed to the model.

Parameters

ParameterTypeDescription
pathsstring[]The matching paths returned by a FileReadBackend.

Returns

string

One path per line, or "No files matched." when empty.

Remarks

One path per line; an empty result set yields a clear note instead of an empty string.

See

globTool

On this page