> 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/creating-content/blocks/expandable.md).

# 折りたたみ可能

展開可能なブロックは、本来なら長くなりがちな段落を短くまとめるのに役立ちます。ステップ形式のガイドやFAQにも最適です。

デフォルトでは、公開済みのドキュメントサイトでは展開可能なブロックは折りたたまれています。展開可能なブロックをデフォルトで展開した状態にしたい場合は、そのブロックの **オプションメニュー** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/ce0e0a07ded643c4e219bbfe214239e291d0c7a1" alt=""></picture> を開いて **デフォルトで展開**.

### 例

<details open>

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

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

必要に応じて、展開されたブロックを **デフォルトで展開** ブロックの **オプションメニュー** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/ce0e0a07ded643c4e219bbfe214239e291d0c7a1" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
