ToolContext
The second argument to a tool's run.
Properties
Section titled “Properties”Methods
Section titled “Methods”cost()
Section titled “cost()”cost(usd): void;Reports what the call cost, in US dollars. Each report adds to the total. Budgets count it.
Throws a RangeError for a negative or non-finite amount.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
usd |
number |
Returns
Section titled “Returns”void