> ## 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.

# Get JSON Schema fragments for the agent form

> Return the JSON Schema fragments used by the frontend to render
the agent create / edit forms.

The frontend uses three sections — identity, context config, and
react config — so we return them as separate self-contained schemas
rather than a single ``AgentData`` schema with ``$ref``s.

Returns:
    `AgentSchemaResponse`:
        Schemas for the three form sections.



## OpenAPI

````yaml /versions/2.0.2/en/deploy/openapi.json get /agent/schema
openapi: 3.1.0
info:
  title: AgentScope
  version: 2.0.1
servers: []
security: []
paths:
  /agent/schema:
    get:
      tags:
        - agent
      summary: Get JSON Schema fragments for the agent form
      description: |-
        Return the JSON Schema fragments used by the frontend to render
        the agent create / edit forms.

        The frontend uses three sections — identity, context config, and
        react config — so we return them as separate self-contained schemas
        rather than a single ``AgentData`` schema with ``$ref``s.

        Returns:
            `AgentSchemaResponse`:
                Schemas for the three form sections.
      operationId: get_agent_schema_agent_schema_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSchemaResponse'
        '404':
          description: Not found
components:
  schemas:
    AgentSchemaResponse:
      properties:
        identity:
          additionalProperties: true
          type: object
          title: Identity
          description: >-
            Schema for the agent's identity fields (``name``,
            ``system_prompt``).
        context_config:
          additionalProperties: true
          type: object
          title: Context Config
          description: Schema for ``ContextConfig``.
        react_config:
          additionalProperties: true
          type: object
          title: React Config
          description: Schema for ``ReActConfig``.
      type: object
      required:
        - identity
        - context_config
        - react_config
      title: AgentSchemaResponse
      description: |-
        JSON Schema fragments used by the frontend to render the agent
        create / edit forms.

        Each fragment is a self-contained JSON Schema object so the frontend
        doesn't need to follow ``$ref`` links across fragments. The frontend
        pairs each property with an i18n key derived from its path, so labels
        and descriptions remain localizable independently of the backend.

````