> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/blocks/expandable.md).

# 展開可能

展開可能ブロックをページに追加して、ページを短く保ったり、長いコンテンツを隠したり、FAQ を作成したりできます

展開ブロックは、そうでなければ長い段落になってしまう内容を簡潔にまとめるのに役立ちます。手順ガイドやFAQにも最適です。

デフォルトでは、公開ドキュメントサイトの折りたたみ可能なブロックは折りたたまれた状態になります。折りたたみ可能なブロックをデフォルトで展開した状態にするには、ブロックの **オプションメニュー** <picture><source srcset="broken://files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-23f3e8f05326b0d239d32d28bba99c1d46f204f7%2F25_01_10_options_light.svg?alt=media" alt=""></picture> を開き、 **デフォルトで展開**.

### 例

<details open>

<summary>ステップ1: 展開ブロックを使い始める</summary>

展開可能なブロックを追加するには、空のブロックで `/` を押すか、エディターの左側にある `+` をクリックして、 **展開可能**.

必要に応じて、展開可能なブロックを **デフォルトで展開** に設定できます。ブロックの **オプションメニュー** <picture><source srcset="broken://files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-23f3e8f05326b0d239d32d28bba99c1d46f204f7%2F25_01_10_options_light.svg?alt=media" alt=""></picture> で設定します。このブロックと同じです。

</details>

<details>

<summary>ステップ2: ブロックに内容を追加する</summary>

展開ブロックを挿入したら、リストやコードブロックを含むコンテンツを追加できます。

</details>

## Markdownでの表現

{% code overflow="wrap" %}

```markdown
# 展開ブロック

<details open>

<summary>展開ブロックのタイトルをここに追加</summary>

展開ブロックの本文をここに追加します。この展開ブロックは既定で展開されています。

</details>

<details>

<summary>展開ブロックのタイトルをここに追加</summary>

展開ブロックの本文をここに追加します。この展開ブロックは既定で折りたたまれています。

</details>
```

{% endcode %}

### 制限事項

展開ブロック内で作成できるブロックにはいくつか制限があります。展開ブロックには次の種類のコンテンツを挿入できます:

* 段落
* 見出し（1、2、3）
* 箇条書き、番号付きリスト、タスクリスト
* インライン画像

いつでも一覧全体を確認するには、折りたたみ可能なブロックで新しい行を始めて、 `/` を押すと、挿入パレットが表示されます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/blocks/expandable.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
