> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/ja/user-guide/workflows/creating-workflows/configuring-thinklets/remote-action-thinklet.md).

# リモートアクションシンクレット

リモートアクションThinkletは、ワークフローがワークフローで指定されたデバイスまたは他の指定されたデバイス上でNexthinkリモートアクションを実行できるようにします。 ワークフロー実行のコンテキストに基づいて実行を動的に適応できる、パラメータ化されたリモートアクションをサポートしています。

トリガーされると、ワークフローはアクション結果を待ってから続行します。 その後、ワークフローは次のことができます。

* リモートアクションによって返される**出力値**を、次のシンクレットや条件で使用します。
* デバイスがオフラインのときや設定されたタイムアウト内に応答がない場合のような、期限切れシナリオをフォールバックアクションパスで処理します。

リモートアクションの**期限切れ**の終了が接続されていない場合、期限が来るとワークフローの処理が停止します。

<div align="left"><figure><img src="/files/nZKN4Utn8NRC79n4MAm9" alt="image-20240419-144513.png" width="350"><figcaption></figcaption></figure></div>

* **名前**: リモートアクションThinkletのユニークな名前を入力してください。
* **ID**: システムは名前に基づいて自動的にIDを生成します。
* **説明 (オプション)**: Thinkletの目的とその機能を記述してください。 この情報は、ワークフローの他のユーザーがそれを理解していない場合に役立ちます。
* **タイムアウト**: 分または時間でタイムアウトを設定します。 これは、リモートアクションから応答があるまでワークフローがどれだけ待つかを決定します。 デバイスがオフラインの場合、タイムアウトが発生する前にデバイスが再接続されない可能性があります。 タイムアウトの時間制限に達すると、シンクレットは有効期限の状態になります。
* **リモートアクションを選択**: Thinkletが実行するリモートアクションを特定します。 リストに表示されるためには、リモートアクションに**ワークフロー**トリガーが設定されている必要があります。
* **デバイスを選択**: リモートアクションが実行されるデバイスを選択します。 実行されたワークフローに対してデバイスを適用するために、**デバイスを選択**入力フィールドを**ターゲットデバイス**として設定してください。
* **パラメーター**: リモートアクションに必要なパラメーターを設定します。
  * リモートアクションに定義されたパラメーターがある場合、リモートアクションページのスクリプトタブで**ユーザーがカスタム値を入力できるようにする**を設定します。
* **出力**: リモートアクションの出力を表示します。
  * 条件でリモートアクションのステータスを評価するときに、次の値を使用します。
    * 失敗の場合は0
    * 成功の場合は1

{% hint style="warning" %}
ターゲットデバイス以外のデバイスを選択し、**サービス**として実行するよう構成されたリモートアクションを使用する場合は、そのデバイス上の Collector を適切に構成してください。\
構成の詳細については、[Running remote actions as service](https://github.com/nexthink/documentation.online-product-documentation/blob/develop/ja_docs/user-guide/remote-actions/getting-started-with-remote-actions/managing-remote-actions/running-remote-actions-as-a-service-on-server-devices-windows-only.md) のドキュメントを参照してください。
{% endhint %}


---

# 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://docs.nexthink.com/platform/ja/user-guide/workflows/creating-workflows/configuring-thinklets/remote-action-thinklet.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.
