fix: preserve raw media invoke for HTTP tool clients (#34365)

This commit is contained in:
Ayaan Zaidi
2026-03-04 17:17:24 +05:30
committed by Ayaan Zaidi
parent ef4fa43df8
commit 7b5e64ef2e
6 changed files with 54 additions and 6 deletions

View File

@@ -60,6 +60,8 @@ export function createOpenClawTools(options?: {
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). */
@@ -137,6 +139,7 @@ export function createOpenClawTools(options?: {
currentThreadTs: options?.currentThreadTs,
config: options?.config,
modelHasVision: options?.modelHasVision,
allowMediaInvokeCommands: options?.allowMediaInvokeCommands,
}),
createCronTool({
agentSessionKey: options?.agentSessionKey,