py_run
Execute analysis scripts against inbox files inside an offline sandbox, returning only small JSON results so raw personal data stays local.
Instructions
analysis/ 配下のスクリプトを、ネットワーク無しのコンテナで inbox ファイルに対して実行し、小さな JSON 結果だけ返す。
スクリプト内では `import sd` して `df = sd.load("<file id>")` で読み、`sd.result({...})` で結果を返す。
print 出力は返らない。結果に保護対象の値(PII 列の値)が含まれると拒否される。
Args:
script: analysis ディレクトリからの相対パス(例: retention.py)。
inputs: files_describe で得た id のリスト。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>"
},
"name": "py_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | ||
| script | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||