Attach a skill to an agent
attach_skillAttach a skill to an agent so the agent can use it. Give skill as org: or a bare name for a skill the organization published. The agent always follows the skill's latest version; a version pin such as @v2 is ignored, and the answer says so. An org skill must already exist and be published (create_service with kind skill, then publish_skill), except a built-in such as governance or security: when the organization has published no skill of that name, the agent holds Valet's default, follows it, and moves to the organization's own skill once one is published. Give catalog: for a skill from Valet's curated catalog: it installs a copy into the organization, or reuses the copy installed before, and attaches it at its latest version. A catalog skill whose name the organization's own skill holds is refused. The agent is rebuilt so the change takes effect. A skill that is already attached answers that nothing changed, without a rebuild; one whose name another attached skill holds is refused with nothing changed. Skills attach to agents only. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. The agent's name. | |
| skill | Yes | Required. org:<name> or a bare name for an organization skill, or catalog:<name> to install and attach a catalog skill. The agent follows the latest version; a @v<N> pin is ignored. | |
| org_name | No | The Valet organization the agent belongs to. Omit to use the organization the account joined first. |