Package For Lola
package_for_lolaWraps generated Ansible collection skills into a Lola-compatible module directory, copying skill folders and writing marketplace metadata for lola mod add.
Instructions
Wrap already-generated skills into a Lola-compatible module directory.
.. deprecated::
Prefer :func:package_as_plugin (Agent Plugins). Kept for one release
cycle for backward compatibility.
Does not change generate_* output layout. Copies
skills/{collection-kebab}/{skill}/ into
{output_dir}/{module}/skills/{skill}/ for marketplace /
lola mod add use. Replaces any existing skills/ tree under the
target module directory (destructive but idempotent).
Returns: {"collection", "module_name", "module_dir", "skill_count", "skills", "market_yml"} or {"error": str} on failure.
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": {
"collection": "<collection>",
"output_dir": "<output_dir>"
},
"name": "package_for_lola"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection namespace whose generated skills to wrap (e.g. 'netbox.netbox'). | |
| output_dir | Yes | Parent directory where the Lola module directory will be created (e.g. '.' or '/tmp/lola-modules'). | |
| source_dir | No | Optional skills root to read from. Defaults to ANSIBLE_KNOW_SKILLS_PATH or SKILLS_DIR (same roots as list_skills). | |
| module_name | No | Optional Lola module directory name. Defaults to 'ansible-{collection-kebab}' (e.g. 'ansible-netbox-netbox'). | |
| write_market_yml | No | When true (default), write lola-market.yml with collection metadata beside the module skills/ tree. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |