update_agent_skill
Create or update a skill (process/procedure) for an agent. Use when a user says "@Marcus here's how I want you to do the cash forecast" or "change how the CFO does the monthly review" or "here's my process for X". Skills teach agents HOW to perform their activities.
[sensitive-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered steps of the process (e.g., ["Pull balances", "Calculate 13-week average", "Flag if runway < 3 months"]) | |
| agent_id | No | UUID of the agent to teach. Optional if agent_name is provided. | |
| companyId | Yes | FreedomOS company id to act within (you must be a member). Required for company-scoped tools. | |
| resources | No | URLs, doc names, templates, or other resources (e.g., ["company P&L template"]) | |
| agent_name | No | Name of the agent (e.g., "Marcus"). Used to look up agent_id if not provided. | |
| skill_name | Yes | Short name for the skill (e.g., "13-Week Cash Forecast") | |
| tools_used | No | Tool names referenced in the process (e.g., ["get_cash_position", "create_google_sheet"]) | |
| activity_name | No | Activity this skill backs (e.g., "Weekly Cash Review"). If provided, the skill will be linked to this activity via skill_id. |