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

# 図面

GitBook 内で図面を作成し、ページに追加します

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

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

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

### 描画ブロックの例

<img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FEU4IQ0zVbLLZ2o7ivizA%2Ffile.excalidraw.svg?alt=media&amp;token=789b9484-cf49-41d7-88ac-61bb1480e85f" alt="GitBook で描かれた図" class="gitbook-drawing">

### GitBook AI で描く

描画ブロックを使用しているときは、プロンプトを指定してイラストの生成を 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 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/drawing.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.
