import type { OpenClawConfig } from "../config/config.js"; import type { GatewayMessageChannel } from "../utils/message-channel.js"; import type { SandboxFsBridge } from "./sandbox/fs-bridge.js"; import type { SpawnedToolContext } from "./spawned-context.js"; import type { ToolFsPolicy } from "./tool-fs-policy.js"; import type { AnyAgentTool } from "./tools/common.js"; export declare function createOpenClawTools(options?: { agentSessionKey?: string; agentChannel?: GatewayMessageChannel; agentAccountId?: string; /** Delivery target (e.g. telegram:group:123:topic:456) for topic/thread routing. */ agentTo?: string; /** Thread/topic identifier for routing replies to the originating thread. */ agentThreadId?: string | number; agentDir?: string; sandboxRoot?: string; sandboxFsBridge?: SandboxFsBridge; fsPolicy?: ToolFsPolicy; sandboxed?: boolean; config?: OpenClawConfig; pluginToolAllowlist?: string[]; /** Current channel ID for auto-threading (Slack). */ currentChannelId?: string; /** Current thread timestamp for auto-threading (Slack). */ currentThreadTs?: string; /** Current inbound message id for action fallbacks (e.g. Telegram react). */ currentMessageId?: string | number; /** Reply-to mode for Slack auto-threading. */ replyToMode?: "off" | "first" | "all"; /** Mutable ref to track if a reply was sent (for "first" mode). */ hasRepliedRef?: { value: boolean; }; /** If true, the model has native vision capability */ modelHasVision?: boolean; /** If true, nodes action="invoke" can call media-returning commands directly. */ allowMediaInvokeCommands?: boolean; /** Explicit agent ID override for cron/hook sessions. */ requesterAgentIdOverride?: string; /** Require explicit message targets (no implicit last-route sends). */ requireExplicitMessageTarget?: boolean; /** If true, omit the message tool from the tool list. */ disableMessageTool?: boolean; /** Trusted sender id from inbound context (not tool args). */ requesterSenderId?: string | null; /** Whether the requesting sender is an owner. */ senderIsOwner?: boolean; /** Ephemeral session UUID — regenerated on /new and /reset. */ sessionId?: string; /** * Workspace directory to pass to spawned subagents for inheritance. * Defaults to workspaceDir. Use this to pass the actual agent workspace when the * session itself is running in a copied-workspace sandbox (`ro` or `none`) so * subagents inherit the real workspace path instead of the sandbox copy. */ spawnWorkspaceDir?: string; } & SpawnedToolContext): AnyAgentTool[];