tool.xml Reference
==================
Every Rappture tool is defined by a ``tool.xml`` file. This page documents
the XML structure that rappture2web understands.
Root structure
--------------
.. code-block:: xml
...
...
The ```` section
----------------------
.. code-block:: xml
My ToolDescription shown at the top of the page.python3 @tool/script.py @drivertrue
``@tool``
Replaced with the directory containing ``tool.xml``.
``@driver``
Replaced with the path to the generated ``driver.xml`` (classic mode) or the
server URL (library mode).
``true``
Enables Uncertainty Quantification controls on numeric inputs.
See :doc:`uq`.
The ```` section
-----------------------
Inputs are rendered as form controls in the sidebar. Supported types:
.. list-table::
:header-rows: 1
:widths: 20 80
* - Type
- Description
* - ````
- Floating-point number with optional units, min/max, presets
* - ````
- Integer with optional min/max
* - ````
- Checkbox (yes/no)
* - ````
- Text input; multiline if ```` specifies rows
* - ````
- Dropdown select from ``