> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# टूल

> जाँचे गए, approval-gated, manual और progress देने वाले PHP टूल परिभाषित करें।

`Tool` वैल्यू बनाएँ और उन्हें `AgentSdk::defineTool(...)` के ज़रिए दें। टूल में ये शामिल हो सकते हैं:

* मॉडल को दिखाए जाने वाले JSON `parameters`
* `inputSchema`, `outputSchema` और `eventSchema` validation callback
* `timeoutMs` और `execute` callback
* boolean या callback के रूप में `requireApproval`
* interactive काम के लिए `onToolCalled` और `onResponseReceived`
* `nextTurnParams` और `onError: "return-to-model"`

शुरुआती नतीजों के लिए `RuntimeContext::$emitProgress` और ऐप context के लिए `$setContext` उपयोग करें।

<Note>
  मानक PHP runtime में tool callback synchronous चलते हैं। इसलिए concurrency और interruption उस PHP process की क्षमताओं पर निर्भर करते हैं जिसमें SDK चलता है।
</Note>

## संबंधित विषय

* [स्थिति और अनुमोदन](./agent-sdk-state-and-approval.mdx)
* [रन कंट्रोल](./agent-sdk-run-controls.mdx)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.