TsgcWSAPIClient_MCP › Methods › Complete
Requests argument autocomplete suggestions from the server (completion/complete).
procedure Complete(const aRefType, aRefName, aArgumentName, aArgumentValue: string);
| Name | Type | Description |
|---|---|---|
aRefType | const string | Kind of the referenced object the user is editing. Typical values are ref/prompt or ref/resource. |
aRefName | const string | Name or URI of the referenced prompt or resource template whose argument is being completed. |
aArgumentName | const string | Name of the argument the user is currently typing. |
aArgumentValue | const string | Partial value already typed by the user. The server uses it as the prefix when ranking suggestions. |
Sends the JSON-RPC completion/complete request. The response carries a list of suggested values (capped by the server, normally at 100 entries) along with a hasMore flag. Results are surfaced through the OnMCPCompletionComplete handler. The session must be in aimcpstInitialized state and the server must advertise the completions capability during initialize.
MCP.Complete('ref/prompt', 'CodeReview', 'language', 'pas');