get_feature_reference
Read the feature library: the JSON, the hook, and its companion files.
This is a READER. It returns facts and decides nothing -- no recommended
feature, no ranking, no "you probably want". You author config/ from
the recipe yourself; this is where you look up what a feature actually
installs before you do.
With no feature_ids it returns the index (id, display name, category) of
every packaged feature, optionally filtered by category.
With feature_ids it returns every requested reference together under
references. Use one call for the complete selected feature set. Each
reference contains:
feature-- the parsed feature JSON, andfeature_jsonits verbatim text. Package lists are per distro (packages.debian,.ubuntu,.fedora,.opensuse, optional.arch);env_varis theENABLE_<X>flag its hook gates on;third_party_repodeclares an APT repo and its keyring.hook-- the verbatim text ofapp/hooks/<category>/<feature>.shwhen the feature ships one, withhook_path. Most features ship none: a package list is the whole feature.companions--{filename: text}for the<stem>-*.sh/<stem>-*.pyfiles that are copied beside the hook. A hook read without them is incomplete. Place them differently from the hook: the hook is written toconfig/hooks/live/NNNN-<feature>.chroot, but a companion goes toconfig/hooks/live/<filename>UNNUMBERED, keeping the exact name returned here, and the mode follows the suffix --.shis 0755 because the hook sources or executes it,.pyis 0644 because the hook installs it into the image rather than running it in the chroot. Renaming, number-prefixing or 0755-ing a.pybreaks the hook, which refers to it by exact name.
There is no generator key and no Python escape hatch. A feature is its
package lists, its hook and the files that hook reads; where a hook reads a
staged manifest its own header names the packaged asset template and the
slots to fill in the installed openfactory-build skill references.
Copy a hook body verbatim when you use it. Paraphrasing a hook loses the distro workaround it was written for, and those workarounds are why the hook exists.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_feature_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | OpenFactory MCP API key (optional). | |
| category | No | Restrict the index to one category directory, e.g. 'desktop', 'services', 'security'. Ignored when feature_ids is given. | |
| feature_ids | No | All features to read in one call, even when only one is needed. Omit to get the feature index; maximum 32. | |
| session_token | No | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||