dosya_dene
Check file access within a permitted directory, returning the file's SHA-256 hash and byte size without exposing content. Rejects external paths, symlinks, and traversal sequences.
Instructions
Dosya erişim denemesi. Verilen mutlak yoldaki dosyayı DEFTERIKI'nin izinli gelen dizininde arar, akışla okur ve SHA-256 özeti ile bayt boyutunu döndürür; içerik döndürmez. Gelen dizininin dışındaki yollar, simgesel bağlantılar ve '..' içeren yollar reddedilir; red durumunda sonuc 'reddedildi' ve gerekce dolu döner.
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": {
"yol": "<yol>"
},
"name": "dosya_dene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sonuc | Yes | ||
| sha256 | Yes | ||
| gerekce | Yes | ||
| boyut_bayt | Yes |