{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"JavaScriptスクリプトの実行","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"javascriptスクリプトの実行","__idx":0},"children":["JavaScriptスクリプトの実行"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"パラメータ","__idx":1},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パラメータの追加"]},": 変数を追加できます。変数名は次のステップでスクリプト内で直接確認できます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["JavaScriptスクリプトの実行"]},": ここにJavaScriptスクリプトを追加できます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["出力形式"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["文字列"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["整数"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["数値"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ブール値"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["要素オブジェクト"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これらの項目は何を意味しますか？"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"出力","__idx":2},"children":["出力"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["出力パラメータ"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スクリプトの出力結果。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["実行ログ"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["開始時刻"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["終了時刻"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["実行時間 (ミリ秒)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ステータス (成功/失敗)"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"例","__idx":3},"children":["例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例1: 乱数を設定する。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例2: 要素の内容を解析する。"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["[!TIP]"," ","プロジェクトで生成された変数をAIに直接渡してスクリプトを生成できます。プロンプト：「{} このJSONコンテンツからJavaScriptを使ってnameの内容を抽出し、最終的にnameの値を出力したい。」"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"関連ノード","__idx":4},"children":["関連ノード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["キーボード操作"]}]},"headings":[{"value":"JavaScriptスクリプトの実行","id":"javascriptスクリプトの実行","depth":1},{"value":"パラメータ","id":"パラメータ","depth":2},{"value":"出力","id":"出力","depth":2},{"value":"例","id":"例","depth":2},{"value":"関連ノード","id":"関連ノード","depth":2}],"frontmatter":{"seo":{"title":"JavaScriptスクリプトの実行"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/rparobotic-process-automation/03-node/02-data-processing/01-run-js-script","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}