Add a feature
add_featureAdds one ready-made feature to the site, like Add on its card in Xodia. contact-form (Xodia Forms) writes no code: it connects the site's own form to Xodia Forms (as connect_form does; a contact page's form first), or, when the site has no form, says so: then put a contact form on a page (a with named fields) and connect it with connect_form. online-shop, buy-button, donations, paid-booking and memberships are Xodia's shop service (paid-booking and memberships also need the Xodia database): they write no server code and need no keys (the Products collection is made when missing), and the owner connects Stripe in Xodia. ai-answer by default runs on the workspace's bought Xodia AI credits: no server code and no key, Xodia answers at /api/_xodia/ai/answer on the site (preview and live alike). It also places Xodia's answer box on the home page by default (AnswerBox in an AskBox section on React sites, the site helper's data-xodia-ask form on plain HTML), after the page's questions part, else before its contact or call to action part, else at the end (the answer says where): pass page with another page's path, or page false to add it without placing it. Then move or restyle that piece with small edits, never a question form of your own. Pass ownKey true only when the owner asks to use their own AI service's key instead: that writes the older server code (api/ai-reply.ts) and needs their AI key in Keys and secrets. members-sign-in (React sites with the Xodia database) turns on visitors' sign-in with Google and, when the site can send email, a code by email; only workspace owners and admins can add it (forbidden otherwise: tell the user who can); a site without the Xodia database or on Supabase gets the step it needs first. Every other feature writes its finished server code into api/ as new files (never over a file: a taken name gets -2), turns server tasks on for the site when they are off (within the plan), and updates the preview copy. Answers the addresses it answers on the site, how a page calls each one, the keys and settings the owner adds in Project settings, Keys and secrets (names and where to find them, never values), and the next steps, saying which are the owner's in Xodia, with the Studio link. Use it instead of writing these files by hand: the ready-made code is trusted by Xodia's safety check, so it never waits for a review. After it: wire the page to the address (skill app-server-tasks), run_check typecheck, and tell the owner the keys to add. Refusals say why in plain words: feature_site_kind (works on React sites only), plan_limit (a paid plan, or no room for server tasks on one more site: tell the owner the hint's next step), feature_already_added (it's there: finish its steps instead), server_tasks_off (Xodia has server features switched off for now: don't retry in this task). Takes the feature id, and ownKey and page for ai-answer only. Keys are the owner's: they add each value in Project settings, Keys and secrets. No tool takes or shows a key's value, so never ask for one in the chat or put one in a file or a call; if the owner pastes one, write it nowhere and ask them to add it there and make a new key at the service.
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": {
"featureId": "<featureId>",
"projectId": "<projectId>"
},
"name": "add_feature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Only for ai-answer on Xodia AI credits: the page's path the answer box goes on (default the home page, /), or false to add it without placing it. | |
| ownKey | No | Only for ai-answer, and only when the owner asks to use their own AI service's key: true writes the older server code that calls their AI service. Leave it out to answer on Xodia AI credits (no key, no code). | |
| featureId | Yes | The feature to add, from list_features: online-shop, contact-form, thank-you-email, ai-answer, buy-button, donations, call-service, daily-check, members-sign-in, paid-booking, memberships, newsletter, form-to-sheet, team-chat. | |
| projectId | Yes | Project id from list_projects |