# 交互式块

除了可以编写的默认Markdown，GitBook还提供了一些开箱即用的互动块。您可以通过在编辑器中按`/`来找到互动块。

<figure><img src="https://gitbookio.github.io/onboarding-template-images/interactive-hero.png" alt=""><figcaption></figcaption></figure>

### 标签页

{% tabs %}
{% tab title="第一个标签" %}
每个标签页就像一个迷你页面——它可以包含多种类型的其他块。因此，您可以在同一个标签块中的各个标签页中添加代码块、图片、集成块等。
{% endtab %}

{% tab title="第二个标签" %}
添加图片、嵌入内容、代码块等。

```javascript
const handleFetchEvent = async (request, context) => {
    return new Response({message: "Hello World"});
};
```

{% endtab %}
{% endtabs %}

### 可展开部分

<details>

<summary>点击我展开</summary>

可展开块有助于压缩可能会很长的段落。它们在分步指南和常见问题解答中也非常有用。

</details>

### 嵌入内容

{% embed url="<https://www.youtube.com/watch?v=YILlrDYzAm4>" %}

{% hint style="info" %}
GitBook支持数千个开箱即用的嵌入网站，只需粘贴它们的链接即可。请随时查看哪些[是本地支持的](https://iframely.com)。
{% endhint %}


---

# 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://docs.incogniton.com/documentation/chinese-documentation/ji-chu/interactive-blocks.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.
