> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindfort.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ログイン手順の書き方

> MindFort エージェントが認証を通過し、ログイン後の領域にアクセスできるよう、明確で段階的なログイン手順を書く方法を説明します。

## 目的

ログイン手順は、保存された認証情報を使ってターゲットアプリケーションにログインする方法を MindFort エージェントに正確に伝えるものです。

この手順がないと、エージェントが正しいログインパスを見つけられなかったり、サインインフロー全体を完了できなかったりして、認証済み領域のカバレッジが低下する可能性があります。

## 記載する内容

シンプルで段階的なログイン手順を記載します。

1. 正確なログイン URL またはルート
2. ログインパスがターゲットのルートと異なる場合 (例: ターゲットが `https://example.com` で、ログインが `https://example.com/login`)
3. 必要なコンテキスト値 (例: 組織/ワークスペース ID、テナントのスラッグ、環境セレクター)
4. ログインを送信するための正確な操作
5. ログイン後に表示されるはずのページ

Magic Link 認証情報の場合は、サインインリンクをどこでリクエストするか、リンクを開いた後にどのページが表示されるべきかを説明してください。

## 良い例

```text theme={null}
Target: https://example.com
Login route: https://example.com/login
Org ID: acme-security

1. Go to https://example.com/login
2. Enter Org ID: acme-security
3. Enter the stored username and password
4. Click Sign In
5. Confirm login at https://example.com/dashboard
```

## よくある間違い

* メインのウェブサイト URL だけを記載している
* サインイン後のリダイレクトを省略している
* 古いログインパスを記載している
* 必要な途中のクリック操作に触れていない


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.