> 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/work/file-library/online-editing.md).

# オンライン編集

ファイルライブラリで Markdown、TXT、SQL、JSON、CSV ファイルを直接編集し、保存するたびに新しいバージョンを作成できます。同時編集時の処理と、新しいバージョンをアップロードして他の形式を更新する方法も説明します。

小さな修正のためにダウンロードして再アップロードする必要はありません。テキスト形式のファイルはファイルライブラリ内で直接編集でき、保存すると新しいバージョンが作成されます。以前のバージョンはいつでも復元できます。

{% hint style="info" %}
オンライン編集は、組織で別途有効にする必要があります。ファイルの詳細に <mark style="color:blue;">編集</mark> ボタンが表示されない場合は、組織の管理者にお問い合わせください。
{% endhint %}

## 利用シーン <a href="#use-case" id="use-case"></a>

カスタマーサポートの責任者が FAQ の誤字を見つけました。ファイルライブラリで FAQ.md を開き、<mark style="color:blue;">編集</mark> をクリックして該当の行を直接修正します。<mark style="color:blue;">プレビュー</mark> に切り替えてレイアウトを確認し、<mark style="color:blue;">保存</mark> をクリックすると、右上に「v4 を保存しました」と表示され、バージョン一覧にもこの変更が追加されます。

***

## テキストファイルの編集 <a href="#edit-text-file" id="edit-text-file"></a>

### 1. エディターを開く <a href="#open-editor" id="open-editor"></a>

ファイル名をクリックしてファイルの詳細を開き、<mark style="color:blue;">編集</mark> をクリックすると、全画面のエディターが開きます。エディターには行番号と構文の色分け機能があります。CSV ファイルは表形式で編集でき、行の追加や削除が可能です。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-0dc4e48894ddd4c8c550d9517f14075bcd5c5ce7%2Ffile-library-online-editor.png?alt=media" alt="Markdown のオンラインエディター。10 行目が変更され、右上の保存ボタンが有効になっています"><figcaption><p>変更すると右上の保存ボタンが有効になります</p></figcaption></figure>

### 2. プレビューに切り替える <a href="#preview" id="preview"></a>

Markdown ファイルでは、上部で <mark style="color:blue;">編集</mark> と <mark style="color:blue;">プレビュー</mark> を切り替えられます。プレビューモードでは変更できません。編集を続けるには <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-166386fe982835ddcd879327ed60cc584feec61c%2Ffile-library-online-editor-preview.png?alt=media" alt="Markdown のプレビューモード。レイアウトが適用された FAQ の内容が表示されています"><figcaption><p>レイアウトが適用された内容をプレビューできます</p></figcaption></figure>

### 3. 新しいバージョンとして保存する <a href="#save-version" id="save-version"></a>

<mark style="color:blue;">保存</mark> をクリックすると、内容が新しいバージョンとして保存され、右上に「v○ を保存しました」と表示されます。バージョンメニューでは過去のバージョンを確認したり、以前のバージョンの内容に切り替えたりできます。エディターは自動保存しません。未保存の変更がある状態で画面を離れようとすると、確認メッセージが表示されます。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-9312bee2a01c22662002c09897bda7f1ba1fbc83%2Ffile-library-online-editor-versions.png?alt=media" alt="エディター右上のバージョンメニュー。現在のバージョン v4 と、v3、v2、v1 が表示されています"><figcaption><p>保存するたびに新しいバージョンが作成されます</p></figcaption></figure>

### 対応形式と上限 <a href="#supported-formats" id="supported-formats"></a>

| 形式                  | 上限                                  |
| ------------------- | ----------------------------------- |
| MD、TXT、SQL、JSON、CSV | 1 ファイル 5 MB、CSV と JSON は最大 50,000 行 |

上限を超えるファイルは、プレビューとダウンロードのみ可能です。

***

## 複数人での同時編集 <a href="#concurrent-editing" id="concurrent-editing"></a>

編集中に同僚が先に新しいバージョンを保存した場合、保存をクリックすると「○○ さんが○○に新しいバージョンを保存しました。編集中の内容は v○ です」と表示され、次の 2 つの選択肢が提示されます。

* <mark style="color:blue;">自分の内容をそのまま新しいバージョンとして保存</mark>：自分の変更を維持して最新バージョンとして保存します（同僚のバージョンもバージョン一覧に残ります）。
* <mark style="color:blue;">最新バージョンを読み込む</mark>：現在の変更を破棄し、同僚が保存した最新バージョンから編集を続けます。

***

## 新しいバージョンのアップロード <a href="#upload-new-version" id="upload-new-version"></a>

ローカルで編集したファイルは、ファイルの詳細で <mark style="color:blue;">新しいバージョンをアップロード</mark> を使うと、ファイル名と保存場所を変えずに、同じファイルの新しいバージョンとして追加できます。アップロードするファイルは元のファイルと**同じ形式**である必要があり、1 ファイルの上限は 10 MB です。テキスト形式のファイルに加え、XLSX、DOCX、PPTX に対応しています。この機能もオンライン編集と同様に、組織で有効にする必要があります。

***

## 関連ページ <a href="#related" id="related"></a>

* [バージョン履歴と復元](https://docs.maiagent.ai/maiagent-user-guide/ja/work/file-library/versions.md)
* [AI でファイルを編集・整理する](https://docs.maiagent.ai/maiagent-user-guide/ja/work/file-library/ai-edit.md)


---

# 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/work/file-library/online-editing.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.
