get_script
Retrieve script code for any object or cell in the current Purl project. Specify a cell name to disambiguate when duplicate object names exist.
Instructions
Get the script code for an object or cell in the current project.
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": {
"target": "<target>"
},
"name": "get_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Object name (e.g., "Player") or "cell:CellName" for cell scripts | |
| cellName | No | Optional: restrict object lookup to this cell. Required when the same object name exists in multiple cells (e.g., after duplicating a cell); otherwise the server errors with a list of candidate cells. |