Skip to main content

Function: invoke()

invoke(client, operation, options?): Promise<unknown>

Defined in: src/mcp/invoke.ts:21

Calls one catalog operation through client.call.

Only catalog operations can be reached (file upload is not in it), a body is refused where the operation takes none, api_key is refused (the client adds the configured one), unknown body fields are refused, and writes need confirm: true.

Parameters​

client​

LibreTranslateClient

operation​

string

options?​

InvokeOptions = {}

Returns​

Promise<unknown>