Skip to main content
Get structured source information for a project skill

Tool details

FieldValue
Nameget_skill_source
GroupProject Primitives

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "skill_id": {
      "type": "string",
      "description": "Skill ID from list_skills"
    },
    "runtime_target_kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "production",
            "environment",
            "preview_branch"
          ],
          "description": "Provide the runtime target kind."
        },
        {
          "type": "null",
          "description": "Provide the runtime target kind."
        }
      ],
      "description": "Provide the runtime target kind."
    },
    "target_environment_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Provide the target environment id."
        },
        {
          "type": "null",
          "description": "Provide the target environment id."
        }
      ],
      "description": "Provide the target environment id."
    },
    "target_branch_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Provide the target branch id."
        },
        {
          "type": "null",
          "description": "Provide the target branch id."
        }
      ],
      "description": "Provide the target branch id."
    },
    "source_target_kind": {
      "type": "string",
      "enum": [
        "project",
        "production",
        "environment",
        "preview_branch"
      ],
      "description": "Provide the source target kind."
    }
  },
  "required": [
    "project_reference",
    "skill_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Input schema for the get_skill_source tool."
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the record."
    },
    "name": {
      "type": "string",
      "description": "Human-readable name for the record."
    },
    "description": {
      "type": "string",
      "description": "Human-readable description for the record."
    },
    "source_path": {
      "type": "string",
      "description": "The source path associated with this record."
    },
    "allowed_tools": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One allowed tool item associated with this record."
      },
      "description": "The allowed tools associated with this record."
    },
    "sections": {
      "type": "object",
      "properties": {
        "Summary": {
          "type": "string",
          "description": "The summary associated with this record."
        },
        "Usage": {
          "type": "string",
          "description": "The usage associated with this record."
        },
        "Examples": {
          "type": "string",
          "description": "The examples associated with this record."
        },
        "Notes": {
          "type": "string",
          "description": "The notes associated with this record."
        }
      },
      "additionalProperties": false,
      "description": "Structured skill sections schema for MCP tools."
    },
    "source": {
      "type": "string",
      "description": "The source associated with this record."
    },
    "edit_mode": {
      "type": "string",
      "enum": [
        "structured",
        "source_only"
      ],
      "description": "The edit mode associated with this record."
    },
    "source_only_reasons": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One source only reason item associated with this record."
      },
      "description": "List of source only reasons associated with this record."
    }
  },
  "required": [
    "id",
    "name",
    "description",
    "source_path",
    "sections",
    "source",
    "edit_mode",
    "source_only_reasons"
  ],
  "additionalProperties": false,
  "description": "Structured skill output schema for MCP tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}