Luaコンポーネント読み取り
dx12_read_lua_componentRead the source code of an existing Lua component from the assets directory. Use this to review current script before writing an updated version with the create tool.
Instructions
既存の .lua コンポーネントのソースをそのまま読む。dx12_create_lua_component は新規/上書き書き込み専用で読み取りが無かったため追加。既存スクリプトを確認してから修正版を dx12_create_lua_component で書き戻す、という編集ループに使う。{path, code}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | assets 相対パス。例: components/Health.lua |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | エンジンからの生の結果。実際の形は各ツールの説明 / dx12_describe_components を参照。text にも同内容を JSON 文字列で格納。 |