Create a tool
Open a server and click Create New Tool.- Enter a name such as
get_orders. - Add the inputs your code needs.
- Write the tool body in the editor.
- Keep Active on and click Create.
Parameters
Add a key, type, and description for each input. Mark it optional only when your code can run without it. Available types arestring, number, boolean, object, and array.
Read inputs from params:
name.
Editor
The editor has syntax highlighting and SDK suggestions. Write JavaScript directly. Top-levelawait and return work inside the tool body.
Use Runtime for supported helpers and Examples for complete tool bodies.