TsgcWSAPIClient_MCP › Methods › TasksUpdate
Sends the answers of the inputs requested by a task (tasks/update).
procedure TasksUpdate(const aTaskId: string; const aInputResponses: TsgcAI_MCP_Client_InputRequests); overload;
procedure TasksUpdate(const aTaskId, aInputResponses: string); overload;
| Name | Type | Description |
|---|---|---|
aTaskId | const string | Id of the task. |
aInputResponses | TsgcAI_MCP_Client_InputRequests or string | Answers of the requested inputs, as an input requests object or as raw JSON. |
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.
MCP.TasksUpdate(FTaskId, '{"confirm":{"action":"accept","content":{"ok":true}}}');