generate
Generates minimal stub code for specified Python packages, using symbols referenced from an entry point, to reduce executable size.
Instructions
stubbable パッケージの最小スタブコードを生成します。
analyzer が特定した参照シンボルに基づき、import が通る最小限の ダミーモジュール(クラス定義 + 関数スタブ)を生成します。 ファイルの書き出しは行わず、{パス: コード} の辞書を返します。
Args: entry_point: プロジェクトのエントリーポイントファイルパス package_name: スタブ化するパッケージ名(例: "pandas") python_path: site-packages パス(空の場合は現在の環境を自動検出)
Returns: files: {相対パス: コード内容} の辞書 referenced_symbols: 各モジュールで参照されるシンボル一覧 stub_total_bytes: スタブの合計サイズ
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": {
"entry_point": "<entry_point>",
"package_name": "<package_name>"
},
"name": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry_point | Yes | ||
| python_path | No | ||
| package_name | Yes |