Skip to main content

AgentSkill Object

The AgentSkill object supports two modes: referenced (server-stored) and inline (sent per-request). Common fields: Referenced skill fields (when type = "skill_reference"):
At least one of skill_name or skill_id must be provided. If both are given, skill_id takes precedence for resolution.

Inline Skill Fields

When type = "inline", the following fields are used instead of skill_name/skill_id: InlineSkillSource object:
For inline skills, source (with data) is required, and skill_id/skill_name must not be set.

Referenced vs Inline

Identifier Resolution

The platform resolves skill references in this order:
  1. If skill_id is provided, use it directly
  2. If skill_name is provided, look up by name
  3. If skill_version is "latest" (default), resolve to the most recent revision
  4. If skill_version is a specific string (e.g., "20260219-abc123"), resolve to that exact version

Available Toolsets

Toolsets define what capabilities are available to the agent when executing a skill:

Skill File Spec

Python SDK Helpers

The Python SDK provides two convenience functions for working with local skill directories: Both functions require the directory to contain a SKILL.md file. Skill name and description are read from the YAML frontmatter automatically.

API Endpoints