Run PHP Script
run_php_scriptRun PHP code in an isolated temporary file for quick testing and short scripts. Ideal for one-off tasks or validation.
Instructions
PHP kodunu izole bir temp dosyasında çalıştırır. Kısa betikler için uygundur, kalıcı projeler için tasarlanmamıştır.
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": {
"code": "<code>"
},
"name": "run_php_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Çalıştırılacak PHP kodu. <?php etiketi opsiyoneldir. | |
| memoryLimit | No | memory_limit ini değeri. Varsayılan: 256M | 256M |
| timeoutSeconds | No | Saniye cinsinden wall-clock timeout. Varsayılan: 30. |