@modelcontextprotocol/sdk
    Preparing search index...

    Interface CompleteRequest

    A request from the client to the server, to ask for completion options.

    interface CompleteRequest {
        id: RequestId;
        jsonrpc: "2.0";
        method: "completion/complete";
        params: {
            argument: { name: string; value: string };
            context?: { arguments?: { [key: string]: string } };
            ref: PromptReference | ResourceTemplateReference;
        };
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    jsonrpc: "2.0"
    method: "completion/complete"
    params: {
        argument: { name: string; value: string };
        context?: { arguments?: { [key: string]: string } };
        ref: PromptReference | ResourceTemplateReference;
    }

    Type Declaration

    • argument: { name: string; value: string }

      The argument's information

      • name: string

        The name of the argument

      • value: string

        The value of the argument to use for completion matching.

    • Optionalcontext?: { arguments?: { [key: string]: string } }

      Additional, optional context for completions

      • Optionalarguments?: { [key: string]: string }

        Previously-resolved variables in a URI template or prompt.

    • ref: PromptReference | ResourceTemplateReference