Kingsoft AirScript 连接器 v3 icon

Kingsoft AirScript 连接器 v3

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

异步执行脚本 (Async)

AI-generated

Summary

Execute a Kingsoft AirScript script asynchronously and return the task ID. Optionally wait for completion via polling and format the output according to selected options.

Inputs

  • idInputMode — Input method: 'url' parses File and Script IDs from a webhook link; 'manual' requires separate File ID and Script ID entry.
  • webhookUrl (required) — Full webhook link from Kingstrong Docs; the node extracts File ID and Script ID from the path.
  • fileId (required) — File ID of the document containing the script.
  • scriptId (required) — Script ID to execute.
  • contextParameters — Optional context parameters appended to the request: sheet_name, range, link_from, db_active_view, db_selection.
  • argv (required) — JSON arguments to pass to the script.
  • options.a_parallelExecution — Run all input items in parallel when enabled.
  • options.b_timeoutSeconds — Timeout in seconds for polling when waiting for completion.
  • options.c_waitForCompletion — When enabled, the node automatically polls until the script execution finishes or times out.
  • options.d_pollIntervalSeconds — Polling interval in seconds when waiting for completion.
  • options.e_batchSize — Number of items processed per batch when parallel execution is enabled.
  • options.f_outputFormat — Output format: fullResponse (complete result), resultOnly (just the result), splitLogs (all logs), or splitErrors (error logs only).
  • options.g_parseResultString — If enabled, automatically parse the result string as JSON if it appears to be JSON.

Output shape

An array of items, each containing a json payload with the script execution result formatted per f_outputFormat. When c_waitForCompletion is true, the result reflects the finished task status; otherwise, it contains the initial asynchronous response with task ID and status.

The operation makes a POST request to create an async task, then optionally polls GET until status is 'finished' or timeout is reached. Output formatting and JSON parsing are controlled by the options collection.

Discussion