> For the complete documentation index, see [llms.txt](https://adamite.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adamite.gitbook.io/docs/server/functions/invokable-functions.md).

# Invokable Functions

Invokable Functions can be called from the client at will. They can be passed arguments and can return a value.

```javascript
const { InvokableFunction } = require("@adamite/service-functions");

module.exports = {
  add: new InvokableFunction((args) => {
    return args.x + args.y;
  })
};
```
