Skip to main content

Give agents real document tools

Expose structured Word, Cell, and Show operations instead of asking a model to manipulate opaque files.

import { createDocumentTools } from "@thinkfree/tfo-ai-sdk";

const tools = createDocumentTools({
tfoBaseUrl: "http://localhost:8080",
modules: ["word", "cell", "show"],
});

For destructive or broad edits, generate a plan, show the user a diff, and require confirmation before applying it. Use an explicit tool allowlist, execution timeout, document-size limit, and request audit trail.