# Function: callAction()

```ts
function callAction(
   node, 
   name, 
   input?
): Promise<{
  isError: boolean;
  text: string;
  value?: unknown;
}>;
```

Defined in: [packages/core/src/node/actions.ts:1080](https://github.com/leifriksheim/minca/blob/main/core/src/node/actions.ts#L1080)

Runs an action for a model: its result as JSON text, after PEER_CONTENT_NOTE
when others wrote it. A failure is text for the model to read and correct.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`P2PNode`](https://minca.dev/api/core/interfaces/P2PNode.md) |
| `name` | `string` |
| `input?` | `unknown` |

## Returns

`Promise`\<\{
  `isError`: `boolean`;
  `text`: `string`;
  `value?`: `unknown`;
\}\>
