> 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 内で図面を作成し、ページに追加します

統合された [Excalidraw](https://excalidraw.com/) エディターを使って、GitBook 上で直接図やスケッチを作成し、そのまま 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%2Fgit-blob-82ba02f9ab46dab3c5b15fedd96dab263f0308aa%2F25_01_10_diagram.svg?alt=media" 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.
