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

# 워크스페이스

> 워크스페이스와 워크스페이스 멤버십을 관리합니다.

# 워크스페이스

워크스페이스와 워크스페이스 멤버십을 관리합니다.

<script src="/locale-bridge.js" />

예시는 A2A 코드 모드를 사용합니다. MCP는 `execute` 도구를 통해 동일한 코드 모드를 노출합니다.

## 함수

### `workspaces.add`

```text theme={null}
workspaces.add(account_id: str, name: str) -> Workspace
```

워크스페이스: `workspaces.add`.

| 속성        | 값                                                  | 속성        | 값                  |
| --------- | -------------------------------------------------- | --------- | ------------------ |
| 필요 권한     | `workspace.manage`                                 | 인증 필요     | `예`                |
| 실행 모드     | `sync`                                             | 기능 권한     | `workspace.manage` |
| 리소스 유형    | `account`                                          | 리소스 ID 필드 | `account_id`       |
| 공개 API 경로 | `POST /v1/public/accounts/{account_id}/workspaces` |           |                    |

<AccordionGroup>
  <Accordion title="인수">
    | 이름           | 유형    | 필수 |
    | ------------ | ----- | -- |
    | `account_id` | `str` | 예  |
    | `name`       | `str` | 예  |
  </Accordion>

  <Accordion title="반환값">
    | 필드           | 유형            | 필수  |
    | ------------ | ------------- | --- |
    | `account_id` | `str`         | 예   |
    | `id`         | `str`         | 예   |
    | `name`       | `str`         | 예   |
    | `created_at` | `str \| null` | 아니요 |
    | `status`     | `str`         | 아니요 |
    | `updated_at` | `str \| null` | 아니요 |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.add",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP 예시">
    요청:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
        }
      }
    }
    ```

    응답:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.add\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `workspaces.delete`

```text theme={null}
workspaces.delete(account_id: str, workspace_id: str) -> {}
```

워크스페이스: `workspaces.delete`.

| 속성        | 값                                                                   | 속성        | 값                  |
| --------- | ------------------------------------------------------------------- | --------- | ------------------ |
| 필요 권한     | `workspace.manage`                                                  | 인증 필요     | `예`                |
| 실행 모드     | `sync`                                                              | 기능 권한     | `workspace.manage` |
| 리소스 유형    | `account`                                                           | 리소스 ID 필드 | `account_id`       |
| 공개 API 경로 | `DELETE /v1/public/accounts/{account_id}/workspaces/{workspace_id}` |           |                    |

<AccordionGroup>
  <Accordion title="인수">
    | 이름             | 유형    | 필수 |
    | -------------- | ----- | -- |
    | `account_id`   | `str` | 예  |
    | `workspace_id` | `str` | 예  |
  </Accordion>

  <Accordion title="반환값">
    | 필드       | 유형   | 필수 |
    | -------- | ---- | -- |
    | `result` | `{}` | 예  |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {}
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.delete",
          "status": "completed",
          "result": {}
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP 예시">
    요청:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
        }
      }
    }
    ```

    응답:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": {}\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.delete\",\n      \"status\": \"completed\",\n      \"result\": {}\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `workspaces.get`

```text theme={null}
workspaces.get(account_id: str, workspace_id: str) -> Workspace
```

워크스페이스: `workspaces.get`.

| 속성        | 값                                                                | 속성        | 값                |
| --------- | ---------------------------------------------------------------- | --------- | ---------------- |
| 필요 권한     | `workspace.view`                                                 | 인증 필요     | `예`              |
| 실행 모드     | `sync`                                                           | 기능 권한     | `workspace.view` |
| 리소스 유형    | `account`                                                        | 리소스 ID 필드 | `account_id`     |
| 공개 API 경로 | `GET /v1/public/accounts/{account_id}/workspaces/{workspace_id}` |           |                  |

<AccordionGroup>
  <Accordion title="인수">
    | 이름             | 유형    | 필수 |
    | -------------- | ----- | -- |
    | `account_id`   | `str` | 예  |
    | `workspace_id` | `str` | 예  |
  </Accordion>

  <Accordion title="반환값">
    | 필드           | 유형            | 필수  |
    | ------------ | ------------- | --- |
    | `account_id` | `str`         | 예   |
    | `id`         | `str`         | 예   |
    | `name`       | `str`         | 예   |
    | `created_at` | `str \| null` | 아니요 |
    | `status`     | `str`         | 아니요 |
    | `updated_at` | `str \| null` | 아니요 |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.get",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP 예시">
    요청:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
        }
      }
    }
    ```

    응답:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.get\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `workspaces.list`

```text theme={null}
workspaces.list(account_id: str, page?: int, page_size?: int) -> Page[Workspace]
```

워크스페이스: `workspaces.list`.

| 속성        | 값                                                 | 속성        | 값                |
| --------- | ------------------------------------------------- | --------- | ---------------- |
| 필요 권한     | `workspace.view`                                  | 인증 필요     | `예`              |
| 실행 모드     | `sync`                                            | 기능 권한     | `workspace.view` |
| 리소스 유형    | `account`                                         | 리소스 ID 필드 | `account_id`     |
| 공개 API 경로 | `GET /v1/public/accounts/{account_id}/workspaces` |           |                  |

<AccordionGroup>
  <Accordion title="인수">
    | 이름           | 유형    | 필수  |
    | ------------ | ----- | --- |
    | `account_id` | `str` | 예   |
    | `page`       | `int` | 아니요 |
    | `page_size`  | `int` | 아니요 |
  </Accordion>

  <Accordion title="반환값">
    | 필드          | 유형                                                                                                                      | 필수 |
    | ----------- | ----------------------------------------------------------------------------------------------------------------------- | -- |
    | `items`     | `[{"account_id": str, "id": str, "name": str, "created_at"?: str \| null, "status"?: str, "updated_at"?: str \| null}]` | 예  |
    | `page`      | `int`                                                                                                                   | 예  |
    | `page_size` | `int`                                                                                                                   | 예  |
    | `total`     | `int`                                                                                                                   | 예  |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.list",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP 예시">
    요청:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
        }
      }
    }
    ```

    응답:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.list\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `workspaces.update`

```text theme={null}
workspaces.update(account_id: str, workspace_id: str, name: str) -> Workspace
```

워크스페이스: `workspaces.update`.

| 속성        | 값                                                                  | 속성        | 값                  |
| --------- | ------------------------------------------------------------------ | --------- | ------------------ |
| 필요 권한     | `workspace.manage`                                                 | 인증 필요     | `예`                |
| 실행 모드     | `sync`                                                             | 기능 권한     | `workspace.manage` |
| 리소스 유형    | `account`                                                          | 리소스 ID 필드 | `account_id`       |
| 공개 API 경로 | `PATCH /v1/public/accounts/{account_id}/workspaces/{workspace_id}` |           |                    |

<AccordionGroup>
  <Accordion title="인수">
    | 이름             | 유형    | 필수 |
    | -------------- | ----- | -- |
    | `account_id`   | `str` | 예  |
    | `workspace_id` | `str` | 예  |
    | `name`         | `str` | 예  |
  </Accordion>

  <Accordion title="반환값">
    | 필드           | 유형            | 필수  |
    | ------------ | ------------- | --- |
    | `account_id` | `str`         | 예   |
    | `id`         | `str`         | 예   |
    | `name`       | `str`         | 예   |
    | `created_at` | `str \| null` | 아니요 |
    | `status`     | `str`         | 아니요 |
    | `updated_at` | `str \| null` | 아니요 |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.update",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP 예시">
    요청:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
        }
      }
    }
    ```

    응답:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.update\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>
