Kingsoft AirScript 连接器 v3 icon

Kingsoft AirScript 连接器 v3

连接并执行 Kingsoft AirScript 脚本(V3:默认只执行一次 + 内部分批并发 + 汇总输出,杜绝重复写入)。

同步执行脚本 (Sync)

AI-generated

Summary

Synchronously execute a Kingsoft AirScript script with customizable input arguments and execution modes, supporting batch aggregation of input data and concurrent sub-batch processing, to obtain the script execution results immediately.

Inputs

  • Webhook 链接 (required) — Complete webhook URL copied from a Kingsoft document script page to automatically parse File ID and Script ID.
  • 文件 ID (File ID) (required) — Manual File ID of the script file if not using webhook URL input mode.
  • 脚本 ID (Script ID) (required) — Manual Script ID of the script if not using webhook URL input mode.
  • 执行模式(V3) (required) — Selects execution mode: 'uiOnce' to execute once using the UI Argv, or 'aggregateOnce' to aggregate all input items into an array field in Argv and execute once.
  • 聚合配置(Aggregate) — Configuration for aggregating input items when 'aggregateOnce' execution mode is selected, including target array field path in Argv, input item data extraction path, and injection policy.
  • 可选上下文参数(Context) — Optional context parameters like Sheet Name, Range, Link From, DB Active View, and DB Selection to specify script operation scope.
  • 脚本参数(Argv JSON) (required) — JSON object representing script input arguments (Context.argv), can contain arrays for batch processing.
  • 高级选项 — Options for concurrency, retries, timeouts, debugging, output format, and batch execution behaviors.

Output shape

a list of output items, typically a single item unless batch splitting is enabled, each containing JSON with the script execution response including status, result, error messages, logs, and optionally debug metadata.

Supports output formats including full response, result only, splitting logs or errors as separate items. When batch chunking is enabled, results may include aggregated output with task IDs and batch metadata.

Examples

Example 1: Execute a Kingsoft AirScript script synchronously once using UI Argv containing a data array

Set '执行模式(V3)' to '执行一次:仅使用 UI Argv(推荐,最安全)', provide 'Webhook 链接', and specify '脚本参数(Argv JSON)' with a 'data' array to be processed.

Example 2: Aggregate multiple n8n input items into a single Argv array field and execute once

Set '执行模式(V3)' to '执行一次:聚合输入 Items 到数组字段(默认 Data,可改)', configure '聚合配置' to specify the target array field path (e.g., 'data') and optionally the item data extraction path, then provide base Argv JSON.

Links

Discussion