> 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/drawing.md).

# 図面

GitBook に統合された [Excalidraw](https://excalidraw.com/) エディタを使って、そのまま GitBook のページに追加できます。

図を作成するには、 `/` 空白行で挿入パレットを開くために **図**。これにより Excalidraw のツールを含むポップオーバーが開きます。終わったらポップオーバーを閉じるだけで、図が GitBook ページに表示されます。

GitBook は、セクション内の図を特別な SVG ファイルとして保存します。これらのファイルの拡張子は `drawing.svg`.

### 図ブロックの例

<img src="/files/1c4fdb13c751103996a62e6c27a0cdd3765c58cd" alt="GitBook で描かれた図" class="gitbook-drawing">

### GitBook AI で描く

{% hint style="info" %}
この機能は～で利用できます [ProプランおよびEnterpriseプラン](https://www.gitbook.com/pricing).
{% endhint %}

図ブロックを使用すると、プロンプトを指定して GitBook AI にイラストの生成を依頼できます。プロンプトを入力して **生成**を押すか、始めるために提案されたプロンプトのいずれかを選択してください。

GitBook AI が図の作成を完了したら、ダブルクリックして完全な図形描画パレットを開き、好きなように編集できます。

図を編集するときは、 **AI を使って生成** ボタンをクリックすると、GitBook AI のプロンプトエディタが再び表示され、新しい図を生成できます。

### Markdownでの表記

```markdown
<img src="https://example.com/file.svg" alt="図の説明の例" class="gitbook-drawing">
```


---

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