Argument normalization
Positional vs object arguments, alias resolution, validation, and dispatch.
Argument normalization
Every generated method accepts either positional arguments (mapped by parameterOrder) or a single options object (with key aliases resolved).
await client.sendText('447123456789@c.us', 'Hello, world!');
// positional args map by parameterOrder -> { to, content, options }
await client.sendText({ chatId: '447123456789@c.us', text: 'Hello, world!' });
// key aliases normalize -> { to, content }Steps: 1) resolve positional/object args, 2) normalize key aliases, 3) inputSchema.parseAsync() validates, 4) dispatch to execute(...). Invalid input rejects before any WhatsApp call.
Was this helpful?
Your answer includes the page path and docs version.
