TsgcWSAPIClient_MCP › Methods › TasksUpdate

TasksUpdate Method

Sends the answers of the inputs requested by a task (tasks/update).

Syntax

procedure TasksUpdate(const aTaskId: string; const aInputResponses: TsgcAI_MCP_Client_InputRequests); overload;
procedure TasksUpdate(const aTaskId, aInputResponses: string); overload;

Parameters

NameTypeDescription
aTaskIdconst stringId of the task.
aInputResponsesTsgcAI_MCP_Client_InputRequests or stringAnswers of the requested inputs, as an input requests object or as raw JSON.

Remarks

Requires the protocol version 2026-07-28; in the legacy era the method raises an exception. The poller calls it automatically when a task is input_required and the inputs are answered by the legacy handlers or OnMCPInputRequired. Call it yourself when MCPOptions.Tasks.AutoPoll is False. The string overload takes the raw JSON object with one member per input key.

See Tasks.

Example

MCP.TasksUpdate(FTaskId, '{"confirm":{"action":"accept","content":{"ok":true}}}');

Back to Methods