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

# Get agent repository tree (CLI)

> Retrieves agent repository file tree for cloning.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/runtime/agents/{id}/repository/tree
openapi: 3.0.0
info:
  title: Runflow Runtime API
  description: >-
    Programmatic surface for the Runflow platform — used by the SDK, the CLI,
    the execution engine, and any server-to-server caller. Authenticate with an
    `x-api-key` header (or `Authorization: Bearer ...`).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.runflow.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags: []
paths:
  /api/v1/runtime/agents/{id}/repository/tree:
    get:
      tags:
        - Runtime API - Agents Management
      summary: Get agent repository tree (CLI)
      description: Retrieves agent repository file tree for cloning.
      operationId: RuntimeAgentsController_getRepositoryTree
      parameters:
        - name: id
          required: true
          in: path
          description: Agent UUID
          schema:
            type: string
      responses:
        '200':
          description: Repository tree retrieved successfully.
      security:
        - bearer: []
components: {}

````