> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/ja/build/tools/configure_tools.md).

# Agent へのツール設定

Agent にツールを設定する方法を説明します。Agent 設定ページで作成済みの API／MCP ツールを選択し、不要なシステム機能を無効にしたり、MaiAgent の内蔵ツールを有効にしたりできます。

作成したツールは Agent の設定で選択でき、Agent の機能を拡張できます。このガイドでは、作成済みのツールを特定の Agent に設定する方法を説明します。

## ツールの設定 <a href="#configure-tools" id="configure-tools"></a>

### 1. Agent の設定を開く <a href="#step-1-enter-ai-agent-settings" id="step-1-enter-ai-agent-settings"></a>

まず、左側のナビゲーションバーから「<mark style="color:blue;">AI 機能</mark>」に移動し、「<mark style="color:blue;">AI アシスタント</mark>」をクリックします。アカウント内で作成したすべての Agent が一覧表示されます。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-87b5a1243ec25ab81a5f9c010df5c95917736f43%2Fagent-builder-list.png?alt=media" alt="名前、大規模言語モデル、回答モードなどの列が表示された Agent 一覧。右上に Agent 作成ボタンがあり、各行の右側に操作ボタンがあります"><figcaption><p>ツールを設定したい Agent を探します</p></figcaption></figure>

### 2. 設定する Agent を選択する <a href="#step-2-select-ai-agent" id="step-2-select-ai-agent"></a>

Agent 一覧でツールを設定したい Agent を探し、「<mark style="color:blue;">編集</mark>」ボタンをクリックして、その Agent の詳細設定ページを開きます。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-87b5a1243ec25ab81a5f9c010df5c95917736f43%2Fagent-builder-list.png?alt=media" alt="各行の右側の操作列に編集ボタンがある Agent 一覧"><figcaption><p>操作列の編集ボタンをクリックして、Agent の設定ページを開きます</p></figcaption></figure>

### 3. Agent の回答モードを切り替える <a href="#step-3-switch-qa-mode" id="step-3-switch-qa-mode"></a>

{% hint style="danger" %}
**重要な前提条件：** ツールを使用できるのは、**Agent モード**に設定された Agent のみです。他のモード（RAG 質疑応答モードなど）では、ツールの設定や使用はできません。
{% endhint %}

Agent の設定ページで、左側のナビゲーションから「<mark style="color:blue;">回答モード設定</mark>」をクリックします。

* **確認**：現在選択されているモードが「<mark style="color:blue;">Agent モード</mark>」であることを確認します。
* **変更**：Agent モードでない場合は、Agent モードに**切り替えてください**。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-4720e2275f9ff8972360e8724ed7521dff892a68%2Fagent-builder-reply-mode-agent.png?alt=media" alt="Agent モードが選択された回答モード設定。左側のナビゲーションにはデータベース設定やツールなどが表示されています"><figcaption><p>ツールを使用するには、Agent が Agent モードに設定されている必要があります</p></figcaption></figure>

### 4. ツール設定ページに移動する <a href="#step-4-go-to-tool-config-page" id="step-4-go-to-tool-config-page"></a>

Agent の設定ページで、左側のナビゲーションから「<mark style="color:blue;">ツール</mark>」をクリックします。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-5ebd173d876bceafb12c2e62674512fb2c2a5781%2Fagent-builder-tools-page.png?alt=media" alt="左側のナビゲーションでツールが選択された Agent 設定ページ。右側の使用ツール欄に選択済みツールが並び、右上にツール選択ボタン、右下に保存ボタンがあります"><figcaption><p>ツール設定ページ</p></figcaption></figure>

### 5. 有効にするツールを選択する <a href="#step-5-select-enabled-tools" id="step-5-select-enabled-tools"></a>

ツール設定ページの右上にある「<mark style="color:blue;">ツールを選択</mark>」ボタンをクリックし、事前に用意されたツール一覧を開いて、次の操作を行います。

* **操作**：
  1. 一覧から、この Agent に使用させたいツールを探します。
  2. 有効にしたいツールの横にあるチェックボックスにチェックを入れます。
  3. Agent のタスクや要件に合わせて、必要な数のツールを選択できます。

{% hint style="info" %}
MaiAgent の内蔵ツール、または独自に定義したツールを選択できます。
{% endhint %}

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-19d0d2ea8d6cb2d488c9058ec0eec8cda5640a34%2Fagent-builder-select-tools-modal.png?alt=media" alt="上部に検索欄とツール種別フィルターがあるツール選択ウィンドウ。選択済みツールとシステム内蔵ツールの一覧が表示され、各ツールにチェックボックスがあります"><figcaption><p>この Agent に使用させたいツールにチェックを入れます</p></figcaption></figure>

{% hint style="info" %}
**ヒント：** Agent に設定するのは、実際に必要で、使用が許可されているツールだけにしてください。関係のないツールを多く設定すると、AI の判断精度や応答効率に影響する場合があります。
{% endhint %}

### 6. 選択したツールを確認する <a href="#step-6-review-selected-tools" id="step-6-review-selected-tools"></a>

選択が終わったら、Agent に設定したツールを再確認し、正しいツールが設定されていることを確かめます。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-5ebd173d876bceafb12c2e62674512fb2c2a5781%2Fagent-builder-tools-page.png?alt=media" alt="選択済みの 3 つのツールが表示された使用ツール欄。各ツールの右側に削除アイコンがあります"><figcaption><p>Agent に正しいツールが設定されていることを確認します</p></figcaption></figure>

## システム機能の制御 <a href="#control-system-functions" id="control-system-functions"></a>

自分で選択するツールに加えて、Agent では現在の会話の履歴検索、添付ファイルの読み取り、ダウンロードリンクの生成などのシステム機能が標準で有効になっています。各 Agent の業務に合わせて個別に無効にすることで、不要なトークン使用を減らし、Agent の動作を予測しやすくできます。

例えば、カスタマーサポートの責任者が、よくある質問への回答だけを行い、添付ファイルを扱わない Agent を作成します。その Agent の詳細設定で添付ファイルの読み取りと解析を無効にして保存すると、ナレッジベースに関する質問には引き続き回答しますが、顧客がアップロードしたファイルの解析は試みなくなります。

{% stepper %}
{% step %}

### 1. 詳細設定を開く <a href="#open-advanced-settings" id="open-advanced-settings"></a>

変更したい Agent を開き、設定ページの左側から <mark style="color:blue;">詳細設定</mark> を選択します。
{% endstep %}

{% step %}

### 2. システム機能を調整する <a href="#adjust-system-functions" id="adjust-system-functions"></a>

<mark style="color:blue;">システム機能</mark> までスクロールし、必要に応じて次の機能を有効または無効にします。

* 会話履歴の検索
* メッセージの前後のコンテキストの取得
* プレーンテキストの添付ファイルの読み取り
* 添付ファイルの内容の解析
* 利用可能なパーサーの一覧表示
* ダウンロードリンクの生成

無効にすると、Agent はその機能を使用できなくなり、関連する回答にも影響する場合があります。

<mark style="color:blue;">プレーンテキストの添付ファイルの読み取り</mark> または <mark style="color:blue;">添付ファイルの内容の解析</mark> のいずれかが有効な場合、Agent はこの会話で以前に送信されたすべてのファイルを探し出すこともできます。詳細は[この会話のファイルを探す](#conversation-files)を参照してください。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-c9c94f6d31a9899182ab5b66fa1269ecbff5cfa7%2Fai-agent-system-functions.png?alt=media" alt="Agent の詳細設定にあるシステム機能のスイッチ"><figcaption><p>Agent の用途に合わせてシステム機能を有効または無効にします</p></figcaption></figure>
{% endstep %}

{% step %}

### 3. 設定を保存する <a href="#save-system-functions" id="save-system-functions"></a>

右下の <mark style="color:blue;">保存</mark> をクリックして設定を適用します。
{% endstep %}
{% endstepper %}

{% hint style="info" %}
一覧の最後の 4 項目は、<mark style="color:blue;">Agent モード</mark> でのみ有効です。これらのスイッチを操作できない場合は、先に <mark style="color:blue;">回答モード設定</mark> で Agent モードに切り替えてください。
{% endhint %}

### この会話のファイルを探す <a href="#conversation-files" id="conversation-files"></a>

<mark style="color:blue;">プレーンテキストの添付ファイルの読み取り</mark> または <mark style="color:blue;">添付ファイルの内容の解析</mark> のいずれかが有効な場合、Agent モードの Agent には「この会話のファイルを一覧表示する」ツールが自動的に追加されます。追加の設定は不要です。会話が長くなると、数ターン前に送信されたファイルを Agent が忘れることがあります。以前のファイルについて質問されると、Agent はまずこの会話のファイル一覧を取得し、必要なファイルを開き直すため、ユーザーに再アップロードを依頼する必要はありません。

例えば、営業担当者が MaiGPT にレシートの写真と議事録をアップロードしてから、「この会話にはどんなファイルがありますか？各ファイルの種類、サイズ、アップロードした人を一覧にしてください」と質問すると、Agent は 2 つのファイルの名前、種類、サイズ、アップロードした人を一覧表示します。続けて「先ほどのレシートの合計金額はいくらですか？」と聞くと、Agent はその写真を再度読み取り、レシートの合計金額を回答します。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-004171e1583f1ec6f71120c600b401f567cdbd91%2Fai-agent-conversation-files-list.png?alt=media" alt="MaiGPT の回答上部の実行ステップに list_conversation_files が表示され、その下の表に demo-meeting-notes.txt と demo-receipt.png の種類、サイズ、アップロードした人が表示されています"><figcaption><p>実行ステップを展開すると、Agent が list_conversation_files でこの会話のファイルを一覧表示したことを確認できます</p></figcaption></figure>

* **一覧の対象**：ユーザーが送信したドキュメントや画像、有人サポートが送信したファイル、Agent 自身が生成したファイル（Canvas など）です。Agent が参照できるのは、現在の会話のファイルだけです。
* **絞り込み**：ファイルが多い場合は、種類、アップロードした人、ファイル名、時刻で絞り込めます。
* **開き直す**：ドキュメントや画像は <mark style="color:blue;">添付ファイルの内容の解析</mark> で開き直し、画像の内容は再認識されます。txt や csv などのプレーンテキストファイルは、<mark style="color:blue;">プレーンテキストの添付ファイルの読み取り</mark> でも開けます。<mark style="color:blue;">プレーンテキストの添付ファイルの読み取り</mark> だけが有効な場合、他の種類のファイルは一覧表示のみで、開き直すことはできません。
* **Agent が生成したファイル**：一覧表示のみで、内容の再読み取りは行いません。<mark style="color:blue;">ダウンロードリンクの生成</mark> が有効な場合、Agent は Canvas のダウンロードリンクを再度提示できます。
* **対応チャネル**：LINE、Messenger、ウェブ、MaiGPT など、すべてのチャネルで利用できます。

{% hint style="info" %} <mark style="color:blue;">プレーンテキストの添付ファイルの読み取り</mark> と <mark style="color:blue;">添付ファイルの内容の解析</mark> が両方とも無効な場合、このツールは追加されず、以前のファイルを探すことはできません。
{% endhint %}

### 7. 💾 Agent の設定を保存する <a href="#step-7-save-ai-agent-settings" id="step-7-save-ai-agent-settings"></a>

ツールの選択が終わったら、**必ず**「<mark style="color:blue;">保存</mark>」ボタンをクリックして、Agent の設定変更を保存してください。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-5ebd173d876bceafb12c2e62674512fb2c2a5781%2Fagent-builder-tools-page.png?alt=media" alt="ツール設定ページの右下にある保存ボタン"><figcaption><p>「保存」をクリックしてツール設定を適用します</p></figcaption></figure>

## Agent モードの内蔵ツールのスイッチ <a href="#agent-mode-builtin-switches" id="agent-mode-builtin-switches"></a>

回答モードが <mark style="color:blue;">Agent モード</mark> の場合、<mark style="color:blue;">回答モード設定</mark> タブには、ツールを別途作成せずにスイッチで直接制御できる機能もあります。

| 設定                                                | 画面の説明                                                                                         | 補足                                                                                                                                                                                                                              |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">ツール検索機能を有効にする</mark>    | 有効にすると、利用可能なツールを自動検索して回答を補助します                                                                | 標準で有効です。ツールが多い場合、Agent は検索してから呼び出します。ツールの検索だけを行うターンは最大反復回数に含まれません。[Agent の実行上限](/maiagent-user-guide/ja/build/agent/custom-max-tokens.md#agent-iteration-timeout-relationship)を参照してください                                         |
| <mark style="color:blue;">Agent モード</mark>        | <mark style="color:blue;">通常モード</mark>／<mark style="color:blue;">キャンバスモード (Canvas)</mark>     | 違いは [Agent モードのサブオプション](/maiagent-user-guide/ja/build/agent/setup.md#agent-mode-normal-vs-canvas)を参照してください                                                                                                                      |
| <mark style="color:blue;">Code Interpreter</mark> | 有効にすると、AI がサンドボックス環境でコードを実行してタスクを完了できます。                                                      | 有効にすると、画面に 4 つのヒント（Python 対応、安全なサンドボックス、Output パネルからのファイルのダウンロード、計算やデータ処理への適性）が表示されます。詳細は [Code Interpreter](/maiagent-user-guide/ja/build/agent/code-interpreter.md) を参照してください                                                 |
| <mark style="color:blue;">Browser Tool</mark>     | 有効にすると、AI アシスタントがブラウザを操作してウェブページの閲覧や操作を行えます。                                                  | 画面には「この機能は Claude モデル向けに最適化されており、他のモデルでは十分な効果が得られない場合があります」と表示されます。詳細は [Browser Tool](/maiagent-user-guide/ja/build/agent/browser-tool.md) を参照してください                                                                            |
| <mark style="color:blue;">画像検索</mark>             | ナレッジベースでマルチモーダル embedding モデルを使用している場合、image\_search ツールで画像の内容を検索できます。無効にすると、このツールは完全に削除されます。 | 関連付けられたナレッジベースがマルチモーダル Embedding モデルを使用し、画像がアップロードされている場合にのみ機能します。画像から画像を検索する必要がない Agent では無効にすることで、ツール説明に使うトークンを節約できます。使用量は [Agent の監視](/maiagent-user-guide/ja/build/agent-ops/evaluations.md#view-image-search-usage)で確認できます |

これらのスイッチは、<mark style="color:blue;">ツール</mark> タブで選択する API／MCP ツールとは独立しています。変更後は同様に右下の <mark style="color:blue;">保存</mark> をクリックしてください。

## MaiAgent の内蔵ツールを設定する <a href="#configure-maiagent-builtin-tools" id="configure-maiagent-builtin-tools"></a>

MaiAgent には 3 種類の AI 画像生成ツールが内蔵されており、追加設定なしで、用途に合わせて Agent に設定できます。「<mark style="color:blue;">ツールを選択</mark>」ウィンドウの「<mark style="color:blue;">システム内蔵ツール</mark>」で、<mark style="color:blue;">Gemini 3 Pro Image</mark>、<mark style="color:blue;">Gemini 3.1 Flash Image</mark>、または <mark style="color:blue;">GPT Image 2 画像生成ツール</mark> にチェックを入れてください。

{% hint style="info" %}
3 種類のツールの比較は、[MaiAgent 内蔵 AI 画像生成ツール](/maiagent-user-guide/ja/build/tools/ai-image-generation-guide.md)を参照してください。
{% endhint %}

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-79b7d7d056695fd0b39063bb5214a57698409eb5%2Fai-image-tools-select-tools.png?alt=media" alt="ツール選択ウィンドウに表示される Gemini 3.1 Flash Image、GPT Image 2 画像生成ツール、Gemini 3 Pro Image"><figcaption><p>ツール選択ウィンドウの画像生成ツール</p></figcaption></figure>

***

これで、選択した Agent は有効にしたツールを使用できるようになりました。Agent とのやり取りで該当する場面になると、AI はタスクの完了や情報の取得のためにこれらのツールの呼び出しを試みます。


---

# 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://docs.maiagent.ai/maiagent-user-guide/ja/build/tools/configure_tools.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.
