System API Completions
The LSP provides comprehensive completions for all Ignition system.* modules — 14 modules with 239+ functions covering the entire Ignition scripting API.
How It Works
Type system. in any Python script to trigger module completions. After selecting a module, typing . again shows all available functions with full signatures and documentation.
# Type 'system.' to see all modules
system.tag.readBlocking(...)
system.db.runPrepQuery(...)
system.perspective.sendMessage(...)
Available Modules
system.tag
Tag read/write operations, browsing, and quality codes.
Common Functions:
readBlocking(tagPaths)- Read tag values synchronouslywriteBlocking(tagPaths, values)- Write tag values synchronouslyreadAsync(tagPaths, callback)- Read tag values asynchronouslybrowse(path, filter)- Browse tag tree structureexists(tagPath)- Check if a tag existsgetConfiguration(basePath, recursive)- Get tag configuration
Use Cases:
- Reading/writing PLC data
- Tag system browsing and discovery
- Tag configuration management
system.db
Database operations, transactions, and named queries.
Common Functions:
runQuery(query, database)- Execute a SQL queryrunPrepQuery(query, args, database)- Execute parameterized queryrunUpdateQuery(query, database)- Execute UPDATE/INSERT/DELETErunNamedQuery(path, params)- Execute a named querybeginTransaction(database)- Start a database transactioncloseTransaction(transactionId)- Commit a transaction
Use Cases:
- Reading from databases
- Storing historical data
- Transaction management
- Prepared statements for SQL injection prevention
system.perspective
Perspective session control, component messaging, and page navigation.
Common Functions:
sendMessage(messageType, payload, scope, sessionId)- Send message to clientsnavigate(page, sessionId)- Navigate to a different pagedownload(filename, data, contentType)- Trigger file downloadlogin(sessionId, username, password)- Programmatic loginlogout(sessionId)- Programmatic logoutgetSessionInfo(sessionId)- Get session properties
Use Cases:
- Component communication
- Page navigation
- File downloads from scripts
- Session management
system.util
Utility functions for timers, threading, exports, and system operations.
Common Functions:
invokeLater(function, delay)- Schedule delayed executioninvokeAsynchronous(function)- Run function in background threadsendRequest(project, messageHandler, payload)- Send message to gatewaygetSystemFlags()- Get system informationgetGlobals()- Access global namespacemodifyTranslation(locale, term, translation)- Add translations
Use Cases:
- Background processing
- Delayed execution
- Inter-scope communication
- System information
system.alarm
Alarm management, querying, and acknowledgment.
Common Functions:
queryJournal(startDate, endDate, filters)- Query alarm journalacknowledge(alarmEvents, notes)- Acknowledge alarmsqueryStatus(priority, state, source)- Query active alarmscreateRosterNotification(roster, message)- Send notifications
Use Cases:
- Alarm history queries
- Alarm acknowledgment workflows
- Active alarm monitoring
system.dataset
Dataset creation, manipulation, and conversion.
Common Functions:
toDataSet(headers, data)- Create dataset from listsaddRow(dataset, rowIndex, row)- Add row to datasetdeleteRow(dataset, rowIndex)- Remove row from datasetsetValue(dataset, rowIndex, columnName, value)- Update cell valuetoPyDataSet(dataset)- Convert to Python-friendly format
Use Cases:
- Building datasets for tables
- Dataset manipulation
- Data format conversion
system.date
Date/time manipulation, formatting, and parsing.
Common Functions:
now()- Get current timestampformat(date, format)- Format date as stringparse(dateString, format)- Parse string to dateaddDays(date, days)- Add/subtract dayssetTime(date, hour, minute, second)- Set time componentsmidnight(date)- Get midnight of given date
Use Cases:
- Date calculations
- Date formatting for reports
- Timestamp comparisons
system.file
File I/O operations, CSV/JSON handling.
Common Functions:
readFileAsString(filepath)- Read entire file as stringwriteFile(filepath, data)- Write string to filereadFileAsBytes(filepath)- Read file as byte arrayopenFile(filter, extension)- Show file picker dialogsaveFile(filename, filter, data)- Show save dialog
Use Cases:
- Configuration file reading
- CSV/JSON data import/export
- File system operations
system.gui
GUI interactions (Vision client scope only).
Common Functions:
messageBox(message, title, options)- Show message dialogconfirm(message, title, showCancel)- Show confirmation dialoginputBox(message, defaultValue)- Show input prompterrorBox(message, title)- Show error dialoggetParentWindow(event)- Get window from event
Use Cases:
- User prompts and confirmations
- Error notifications
- Input collection
system.nav
Navigation functions (Vision client only).
Common Functions:
openWindow(path, params)- Open Vision windowcloseWindow(window)- Close windowswapWindow(window, path, params)- Replace window contentcenterWindow(window)- Center window on screengetWindowNames()- Get all open window names
Use Cases:
- Window management
- Screen navigation
- Multi-window applications
system.net
HTTP requests, email, and webhooks.
Common Functions:
httpGet(url, params, headers)- Make GET requesthttpPost(url, data, headers)- Make POST requestsendEmail(smtp, from, to, subject, body)- Send emailopenURL(url)- Open URL in browser
Use Cases:
- REST API integration
- Email notifications
- External system communication
system.opc
OPC operations, browsing, and read/write.
Common Functions:
browseServer(opcServer, nodeId)- Browse OPC nodesreadValue(opcServer, itemPath)- Read OPC valuewriteValue(opcServer, itemPath, value)- Write OPC valuegetServerState(opcServer)- Get OPC server status
Use Cases:
- OPC UA/DA integration
- Direct PLC communication
- Industrial protocol handling
system.security
Authentication, authorization, and user roles.
Common Functions:
getUsername()- Get current usernamegetRoles()- Get current user's rolesvalidateUser(username, password)- Check credentialsisScreenLocked()- Check screen lock statussetPassword(username, password)- Update user password
Use Cases:
- User authentication
- Role-based security
- Password management
system.user
User management, sessions, and preferences.
Common Functions:
getUser(username)- Get user objectaddUser(source, user)- Create new usereditUser(source, user)- Modify userremoveUser(source, username)- Delete usergetUsers(source)- List all users
Use Cases:
- User administration
- User property management
- Session tracking
Completion Features
Each completion includes:
- Full signature - Parameter names and types
- Description - What the function does
- Scope - Client, Gateway, or Designer
- Return type - What the function returns
- Parameter docs - Description of each parameter
Hover Documentation
Press K (or your LSP hover keybind) over any system.* function to see:
- Complete function signature
- Detailed description
- Parameter documentation
- Return value information
- Scope availability
- Deprecation warnings (if applicable)
Go-to-Definition
Use LSP go-to-definition (typically gd) on any system.* function to jump to its API definition in the database, showing the complete documentation.