- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- uip coder
- uip context-grounding
- uip docsai
- uip function
- uip guardrails
- uip llm-configuration
- uip llm-gateway
- uip model-hub
- add-test-data-entity
- テスト データのキューを追加
- 追加-テスト-データ-バリエーション
- 分析
- 開発
- プロジェクトを作成
- 差分
- アクティビティを検索
- GET-ANALYZER-RULES
- get-default-activity-xaml
- エラーを取得
- 手動テスト用のテスト ケースを取得
- 手動テストステップを取得
- get-library-object-repository
- get-object-repository
- get-versions
- Get-workflow-example
- indicate-application
- 要素を示す
- inspect-package
- install-data-fabric-entities
- パッケージのインストールまたは更新
- list-data-fabric-entities
- list-instances
- list-workflow-examples
- パッケージ化
- パブリッシュ
- remote
- 元に戻す
- run, debug & execution
- ファイル名を実行
- 検索テンプレート
- スタートスタジオ
- 実行を停止
- tm
- UIA
- uip tasks
- uip traces
- uip traces feedback
- 移行
- 参照とサポート
Syntax and options for `uip context-grounding`, a bridge to the Python UiPath CLI for context grounding operations.
uip context-grounding is a thin bridge to the Python-based UiPath SDK's context grounding operations. It detects a suitable Python interpreter, confirms the uipath Python package is installed, and forwards everything else to the Python CLI as uipath context-grounding <args> — this tool defines no native subcommands of its own beyond setup.
Unlike uip codedagent, which only forwards a fixed whitelist of subcommand names, context-grounding-tool forwards any unrecognized command — there is no allowlist to consult before a new Python-side verb works here.
シンラッパーとフルツールの違いについては、 ツール (プラグイン) を参照してください。
概要
uip context-grounding setup [--force]
uip context-grounding <any-command> [args...]
uip context-grounding help
uip context-grounding
uip context-grounding setup [--force]
uip context-grounding <any-command> [args...]
uip context-grounding help
uip context-grounding
setup and any forwarded command honor the global options (--output, --output-filter, --log-level, --log-file). Exit codes follow the standard contract.
uip context-grounding setup
Python を検出し、 uipath パッケージがインストールされていることを確認します。結果はユーザーごとのファイルにキャッシュされるため、後続の context-grounding コマンドでPythonバイナリを即座に解決できます。
引数
設定はありません。
オプション
--force— キャッシュされた結果が存在する場合でも、検出を再実行します。
例
uip context-grounding setup
uip context-grounding setup --force
uip context-grounding setup
uip context-grounding setup --force
データシェイプ (--output json)
{
"Code": "ContextGroundingSetup",
"Data": {
"PythonPath": "/usr/bin/python3.11",
"Package": "uipath",
"PackageInstalled": "Yes",
"PackageVersion": "1.0.0"
}
}
{
"Code": "ContextGroundingSetup",
"Data": {
"PythonPath": "/usr/bin/python3.11",
"Package": "uipath",
"PackageInstalled": "Yes",
"PackageVersion": "1.0.0"
}
}
環境チェック
- 許可される Python のバージョンは、環境変数 (
PYTHON_TOOL_PYTHON_VERSIONS) を使用して構成されます。リストが空の場合、セットアップ時にFailureが発生します。 - 現在の作業ディレクトリに
.venvディレクトリが存在するが、仮想環境がアクティブになっていない場合、セットアップは実行を拒否し、最初にアクティブにすることを提案します(Windowsでは.venv\Scripts\activate、他の場所ではsource .venv/bin/activate)。
転送されるコマンド
Any subcommand that isn't setup or help is forwarded to the Python uipath CLI as uipath context-grounding <args> — there is no fixed whitelist to check against; a brand-new verb the Python package adds tomorrow works here today, with one exception:
auth is blocked. Calling uip context-grounding auth ... fails immediately with Result: ValidationError (exit code 3) and the message "Use 'uip login' for authentication." — unless you pass --force, which bypasses this one filter and lets the auth call through to Python. This is the opposite of --force's effect on uip codedagent, where --force is always silently stripped and never reaches Python — here it's a real, if narrow, escape hatch.
例
# Hand off to the Python CLI's index command
uip context-grounding index ./my-index
# Search a context grounding index
uip context-grounding search "invoice total" --index my-index
# Blocked without --force
uip context-grounding auth login
# Result: ValidationError — "Use 'uip login' for authentication."
# Bypasses the auth filter
uip context-grounding auth login --force
# Hand off to the Python CLI's index command
uip context-grounding index ./my-index
# Search a context grounding index
uip context-grounding search "invoice total" --index my-index
# Blocked without --force
uip context-grounding auth login
# Result: ValidationError — "Use 'uip login' for authentication."
# Bypasses the auth filter
uip context-grounding auth login --force
Because forwarded commands are defined by the uipath Python package, their flags and output shape are whatever that package emits — not the CLI's standard Code/Data envelope. Treat the CLI here as a transport. For the argument surface, run uip context-grounding <command> --help.
Output-format relay: when the global --output is json, the CLI appends --format json to the forwarded command automatically (skipped for --help calls, or when the forwarded args already contain --format) — the Python CLI must support --format json for this to have any effect; no other output format is relayed this way.
Bare invocation and help both forward — unlike uip codedagent (where bare help shows Commander's own help), uip context-grounding with no arguments forwards to exec --help, and uip context-grounding help explicitly forwards to the same exec --help call. Both surface the Python package's own help text, not this tool's.
Auth relay: before forwarding, the CLI reads the session created by uip login and injects it into the Python subprocess's environment, the same mechanism uip codedagent uses. If you are not logged in, forwarding still works; the Python CLI runs without those variables.
終了コード
Standard exit codes apply, plus 3 specifically for the blocked auth command described above. The forwarded subprocess's exit code is otherwise relayed directly to the parent shell.
関連
- ツール (プラグイン) — シンラッパーツールモデル。
uip codedagent— the same Python-bridge pattern, with a fixed forwarding whitelist instead of forwarding everything.uip login— Python ランタイムにリレーされるセッションを作成します。uip tools—context-grounding-toolパッケージ自体をインストール、更新、アンインストールします。