# スニペット

{% hint style="warning" %}
GitBook では Snippets 機能のメンテナンスはすでに行われておらず、変更される可能性があります。コンテンツの構成は a [スペース](/docs/documentation/ja-gitbook-documentation/creating-content/content-structure/space.md) の代わりに行うことをおすすめします。
{% endhint %}

スニペットブロックは、コンテンツ内でスニペットを参照するのに最適な方法です。スニペットブロックを使うと、比較してページ上でスニペットへのリンクを目立たせることができます [インラインリンク](/docs/documentation/ja-gitbook-documentation/creating-content/formatting/inline.md#relative-links).

スニペットブロックは内部ページにのみ使用できます。公開済みスペースのページにスニペットブロックを追加すると、公開ドキュメントではそのブロックが壊れたリンクとして表示されます。

{% hint style="warning" %}
**注：** スニペットブロックを使用した後で [スニペットをページに変換すると](/docs/documentation/ja-gitbook-documentation/sunipetto/snippets-beta.md#convert-a-snippet-to-a-page) ドキュメント内で、そのスニペットブロックは引き続き元のスニペットへのリンクになり、そのスニペットはアーカイブされます。
{% endhint %}

### Markdown での表現

```
{% content-ref url="./" %} . {% endcontent-ref %}
```


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
