> For the complete documentation index, see [llms.txt](https://ai-novel.gitbook.io/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ai-novel.gitbook.io/help/shiii/kyarakutbukkukomando.md).

# キャラクターブック／コマンド一覧

@コマンドを活用することによって、キャラクターブックの挙動をより細かく設定することができます。

例えば、下記のようにすると当該キャラクターブック[^1]がコンテキストの最近400文字以内にある時、\
最新のコンテキストから5行目に挿入されるようにしたり、擬似的に状況に合わせた脚注を挿入することができます。

**タグ：**　*ルシエル*

**説明**

{% code overflow="wrap" %}

```
@range 400
@priority 5
[ルシエル：吾輩。真っ白な毛並みをした白猫]
```

{% endcode %}

***

## **コマンド一覧と使用例**

{% code overflow="wrap" %}

```
@range 500
```

{% endcode %}

コンテキストの下から500文字までをスキャン。

***

{% code overflow="wrap" %}

```
@range 100-1000
```

{% endcode %}

コンテキストの下から100文字目～1000文字目までをスキャン。

***

{% code overflow="wrap" %}

```
@priority 3
```

{% endcode %}

このキャラクターブックの優先度を3に変更。

***

{% code overflow="wrap" %}

```
@and トリン|ワーズ
```

{% endcode %}

指定タグに加えてスキャン範囲内に「トリン」と「ワーズ」が入っている時だけ適用。\
複数指定は`|`で区切る。

***

{% code overflow="wrap" %}

```
@not デリダ
```

{% endcode %}

スキャン範囲内に「デリダ」が入っていると適用しない。\
複数指定は`|`で区切る。

***

{% code overflow="wrap" %}

```
@random 0.4
```

{% endcode %}

このキャラクターブックが適用できる状況でも40%の確率で無視される（0.1で10%、1.0で100%）

***

{% code overflow="wrap" %}

```
@addbanword ねずみロボ<<|>>ネズミロボ
```

{% endcode %}

このキャラクターブックが適用されている時、禁止ワードに「ねずみロボ」と「ネズミロボ」を追加。\
複数指定は`<<|>>`で区切る。

***

{% code overflow="wrap" %}

```
@addbias 猫,10<<|>>犬,-7
```

{% endcode %}

このキャラクターブックが適用されている時、単語として「猫」が出やすくなり、「犬」が出にくくなる。\
複数指定は`<<|>>`で区切る。\
バイアス値は-30から30の間を推奨。

***

## **ご注意**

それぞれの＠コマンドはひとつのタグ内で重複して記述できません。\
必ず1つ1行にまとめてください。

{% hint style="success" %}
良い例：\ <mark style="background-color:orange;">@and トリン|ワーズ</mark>
{% endhint %}

{% hint style="warning" %}
悪い例：\ <mark style="background-color:orange;">@and トリン</mark>

<mark style="background-color:orange;">@and ワーズ</mark>
{% endhint %}

***

[<mark style="color:green;">詳しい使い方</mark>](/help/shiii.md)

[<mark style="color:green;">よくある質問：全部</mark>](/help/yokuaru.md)

[^1]: ルシエル


---

# 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://ai-novel.gitbook.io/help/shiii/kyarakutbukkukomando.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.
