create_python_tns_document
Package Python source into a .tns document ready to transfer and run on TI-Nspire CX II, with built-in MicroPython validation before export.
Instructions
Empaqueta código Python en un archivo de documento .tns listo para transferir y ejecutar directamente en la TI-Nspire CX II. Incluye verificación preventiva de MicroPython.
:param filename: Nombre del archivo (ejemplo: 'solucionador.tns' o 'app') :param python_code: Código fuente en Python para la calculadora. :param output_directory: Carpeta de destino (por defecto el Escritorio del usuario).
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": {
"filename": "<filename>",
"python_code": "<python_code>"
},
"name": "create_python_tns_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| python_code | Yes | ||
| output_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||