---
title: ワークフローとサンドボックス
description: 同梱ワークフローの手順やファイルを取得し、サンドボックスで制作素材を処理します。
canonical_url: https://orchestor.io/docs/mcp/tools/workflows-and-sandbox
markdown_url: https://orchestor.io/docs/mcp/tools/workflows-and-sandbox.md
related:
  - https://orchestor.io/docs/mcp/tools/get_preset_instructions
  - https://orchestor.io/docs/mcp/tools/get_workflow_bundle_file
  - https://orchestor.io/docs/mcp/tools/get_workflow_instructions
  - https://orchestor.io/docs/mcp/tools/sandbox_exec
contentType: reference
---

# ワークフローとサンドボックス

同梱ワークフローの手順やファイルを取得し、サンドボックスで制作素材を処理します。

## `get_preset_instructions`

**Alpha**

同梱のスラッシュコマンドを一覧表示し、指定したコマンドの手順を取得します。

**操作** 読み取り・`creative` フラグが必要

**依頼例:** 利用できるスラッシュコマンドと各コマンドの説明を一覧表示してください。

### パラメーター

| パラメーター | 型 | 必須 | 既定値 | 説明 |
| --- | --- | --- | --- | --- |
| `preset` | string | 任意 | — | `/help` または `help` のようなコマンド名。1〜160 文字です。 |

[ツールの詳細](https://orchestor.io/docs/mcp/tools/get_preset_instructions.md)

## `get_workflow_bundle_file`

**Alpha**

ワークフローに同梱されたファイルを取得し、ディレクトリの内容を一覧表示します。

**操作** 読み取り・`creative` フラグが必要

**依頼例:** help ワークフローの SKILL.md を取得してください。

### パラメーター

| パラメーター | 型 | 必須 | 既定値 | 説明 |
| --- | --- | --- | --- | --- |
| `workflow` | string | 必須 | — | ワークフロー名。 |
| `path` | string | 必須 | — | `SKILL.md` などの相対パス。ルートには `.` を指定します。 |
| `include_contents` | boolean | 任意 | — | ディレクトリ内の全階層のファイルを、本文付きで取得する場合は `true` を指定します。 |

[ツールの詳細](https://orchestor.io/docs/mcp/tools/get_workflow_bundle_file.md)

## `get_workflow_instructions`

**Alpha**

同梱ワークフローを一覧表示し、指定したワークフローの手順とファイルパスを取得します。

**操作** 読み取り・`creative` フラグが必要

**依頼例:** marketing-headline-variants の手順を読み込んでください。

### パラメーター

| パラメーター | 型 | 必須 | 既定値 | 説明 |
| --- | --- | --- | --- | --- |
| `workflow` | string | 任意 | — | 一覧で返るワークフロー名。省略すると、名前、説明、バージョンを一覧表示します。 |

[ツールの詳細](https://orchestor.io/docs/mcp/tools/get_workflow_instructions.md)

## `sandbox_exec`

**Alpha**

接続先のワークスペースに紐づく Linux サンドボックスで Bash コマンドを実行します。動画の連結、字幕の焼き込み、画像のサイズ変換、成果物の ZIP 圧縮などに使います。同梱スクリプトのパスは `$ORCHESTOR_WORKFLOWS/<workflow>/scripts/` です。

**操作** 書き込み・承認が必要・`creative` フラグが必要

**依頼例:** サンドボックスに保存した縦長動画を 1080×1920 に変換して、プレビューを表示してください。

### パラメーター

| パラメーター | 型 | 必須 | 既定値 | 説明 |
| --- | --- | --- | --- | --- |
| `command` | string | 必須 | — | `/home/user` で実行する Bash コマンド。1〜128,000 文字。 |
| `background` | boolean | 任意 | — | コマンドをバックグラウンドで実行します。上限は 15 分です。 |
| `image_paths` | array of string | 任意 | — | フォアグラウンド実行が成功した場合に返す PNG または JPEG。1〜4 ファイル、各パスは 1〜1,024 文字、ファイルの合計は 512 KiB 以内です。相対パスは `/home/user` が起点です。 |
| `recover_sandbox_id` | string | 任意 | — | 現在のサンドボックスの ID。1〜128 文字。利用者の確認後に指定します。`/home/user` を保持してサンドボックスを置き換え、実行中のプロセスを停止します。`command` には `:` を指定します。`restart`、`background`、`image_paths` は併用できません。 |
| `restart` | boolean | 任意 | — | 現在のサンドボックスとそのファイルを破棄し、新しいサンドボックスで実行します。 |
| `size` | string | 任意 | — | `standard` または `xl`。既定値は `standard` です。Alpha では両方が同じ E2B テンプレートを使います。 |
| `timeout_seconds` | integer | 任意 | — | フォアグラウンド実行の上限秒数。1〜120 秒で、既定値は 60 秒です。 |

[ツールの詳細](https://orchestor.io/docs/mcp/tools/sandbox_exec.md)

---

- [Documentation index](https://orchestor.io/docs/llms.txt)
- [Documentation sitemap](https://orchestor.io/docs/sitemap.md)
