Get starter files to add a persona to an app
anam_scaffoldStarter files that put a persona in the user’s app, to write yourself: a server route that swaps the ANAM_API_KEY environment variable for a short-lived session token, a page using @anam-ai/js-sdk, an env file without the key, and install and run commands. express and fastapi come with a Vite page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stack": "<stack>",
"personaId": "<personaId>"
},
"name": "anam_scaffold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack | Yes | ||
| personaId | Yes | The persona to talk to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| open | No | ||
| files | Yes | ||
| label | No | ||
| stack | No | ||
| envVars | No | ||
| persona | No | ||
| commands | No | ||
| resultTrimmed | No |