Execute guarded multiline Laravel Tinker code
laravel_tinker_executeRun PHP code through Laravel Tinker with blocked file, network, and process access; database writes need explicit approval.
Instructions
Runs reviewed PHP code through Laravel Tinker using an ephemeral script outside the repository. Process, filesystem, network, raw-SQL, and secret access are blocked; database writes require explicit approval.
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": {
"project": "<project>",
"code": "<code>"
},
"name": "laravel_tinker_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional project-relative working directory. When omitted, the tool auto-detects the relevant app root. | |
| code | Yes | ||
| project | Yes | Project key from list_projects. | |
| outputMode | No | sanitized | |
| maxOutputChars | No | ||
| timeoutSeconds | No | ||
| transactionMode | No | none | |
| allowDatabaseWrite | No |