Skip to content

createFsTool

function createFsTool(opts): AnyTool;

One durable workspace tool over a FileSystem (ls/cat/grep/find/read/write/edit). Lives in core (not @kuralle-agents/fs) because it needs only defineTool + the FileSystem interface — both core-owned — so the runtime can auto-register it with a static import and no core->fs dependency (RFC-02 §5.2). @kuralle-agents/fs re-exports it.

Parameter Type

opts

CreateFsToolOptions

AnyTool