> 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).

# 図面

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

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

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

### 描画ブロックの例

<img src="/files/1c4fdb13c751103996a62e6c27a0cdd3765c58cd" 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 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/kontentsuwosuru/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.
