> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Skill

> Install a skill from an uploaded folder.

The parts are re-tarred on the fly and piped into the workspace, so
the archive is never held whole. The manifest is what the client
claims; every limit in it is re-checked here, and the byte counts
are verified as the tar is built.



## OpenAPI

````yaml /versions/2.0.6dev/en/deploy/openapi.json post /workspace/skill/upload
openapi: 3.1.0
info:
  title: AgentScope
  version: 2.0.5
servers: []
security: []
paths:
  /workspace/skill/upload:
    post:
      tags:
        - workspace
      summary: Upload Skill
      description: |-
        Install a skill from an uploaded folder.

        The parts are re-tarred on the fly and piped into the workspace, so
        the archive is never held whole. The manifest is what the client
        claims; every limit in it is re-checked here, and the byte counts
        are verified as the tar is built.
      operationId: upload_skill_workspace_skill_upload_post
      parameters:
        - name: agent_id
          in: query
          required: true
          schema:
            type: string
            title: Agent Id
        - name: session_id
          in: query
          required: true
          schema:
            type: string
            title: Session Id
        - name: x-user-id
          in: header
          required: true
          schema:
            type: string
            description: >-
              Caller's user ID. Temporary header-based identity; will be
              replaced by JWT auth.
            title: X-User-Id
          description: >-
            Caller's user ID. Temporary header-based identity; will be replaced
            by JWT auth.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_skill_workspace_skill_upload_post
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_upload_skill_workspace_skill_upload_post:
      properties:
        manifest:
          type: string
          title: Manifest
          description: >-
            JSON ``{entries: [{path, size}]}`` describing the parts, in the
            order they are sent.
        files:
          items:
            type: string
            contentMediaType: application/octet-stream
          type: array
          title: Files
          description: The folder's files.
      type: object
      required:
        - manifest
        - files
      title: Body_upload_skill_workspace_skill_upload_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````