About Afls For Claude
Afls For Claude is an MCP server published by SalesforceLabs in the Science category: a Claude Code plugin bringing AFLS (Agentforce for Life Sciences) implementation expertise into your terminal — skills, specialized agents, and MCP tools to configure, validate, audit, and troubleshoot AFLS Customer Engagement orgs. Conduid read 163 tools from its source: add_navigation_tab, add_visit_engagement_sidebar_item, analyze_sync_telemetry, assign_permission_set, assign_presentation_content, audit_mobile_config and 157 more. No package is published for it, so it installs from a source checkout.
The repository has 10 stars and 7 forks, and its last commit was on 30 Nov 2026. Conduid has no tagged release on record for it. Its topics include afls, agentforce, life-sciences, salesforce and salesforce-life-sciences.
Install
git clone https://github.com/SalesforceLabs/lsc-for-claudeTools (163)
add_navigation_tabAdd a new navigation tab to LSC Mobile via Admin Console > Mobile > UI Settings. Creates a LifeSciConfigRecord of type Tab with field values and optional profile assignments.| Parameter | Type | Description |
|---|---|---|
| developerName * | string | Unique API name (DeveloperName), e.g. 'NavTab_Accounts'. Convention: NavTab_{ObjectName} |
| isActive | boolean | Whether the tab is active on creation (default: true) |
| label * | string | Display name for the component (MasterLabel), e.g. 'Accounts Tab' |
| profiles | array | Optional: profile names to assign (e.g. ['Field Sales Representative']) |
| tabName * | string | Text shown on the tab in the mobile app, e.g. 'Accounts' |
| tabOrder * | number | Position number — lower values appear further left (e.g. 1, 2, 3) |
| targetOrg | string | Optional: specific org to create in |
add_visit_engagement_sidebar_itemAdd a custom object as a related list on a Visit page layout so it appears in the visit engagement sidebar on mobile. Retrieves the layout XML, inserts the related list, and deploys it back. Maximum 10 related lists (8 OOB + 2 custom). If layoutName is omitted, lists available Visit layouts for the user to choose from.| Parameter | Type | Description |
|---|---|---|
| layoutName | string | Specific Visit page layout name (e.g., 'Visit-Visit Layout'). If omitted, lists available Visit layouts. |
| objectName * | string | API name of the custom object to add (e.g., MyCustomObject__c). Must have a lookup/master-detail relationship to Visit. |
| targetOrg | string | Optional: specific org to use. Uses current target org if not specified. |
analyze_sync_telemetryAnalyze real-device sync performance from DeviceSyncSummary records uploaded by the LSC iOS app after every sync. Reports p50/p90/p95/max for initial and delta sync duration, download/upload phases, metadata cache download, records downloaded, device DB size, failure rate, and breakdowns by network and app version, plus the slowest syncs. Read-only; safe in production.| Parameter | Type | Description |
|---|---|---|
| days | number | Look-back window in days (default 30) |
| profileName | string | Optional: restrict to users with this profile name |
| users | array | Optional: restrict to these usernames |
assign_permission_setAssign a permission set to one or more users. Looks up the permission set by label or API name, resolves usernames to IDs if needed, skips users who already have the assignment, and creates PermissionSetAssignment records.| Parameter | Type | Description |
|---|---|---|
| permissionSetName * | string | Permission set label (e.g., 'LSC User') or API name (e.g., 'lsc4ce__LifeSciencesCloudUser') |
| targetOrg | string | Optional: specific org. Uses current target org if not specified. |
| userIds | array | Array of User IDs to assign the permission set to |
| usernames | array | Array of usernames (email format) to assign the permission set to. Will be resolved to User IDs. |
assign_presentation_contentAssign topics to a presentation and/or products to its pages. Creates TopicAssignment and PresentationPageProduct records. Skips duplicates automatically.| Parameter | Type | Description |
|---|---|---|
| presentationId | string | Presentation record ID (18-char). Provide this OR presentationName. |
| presentationName | string | Presentation name to look up. Provide this OR presentationId. |
| productIdForAllPages | string | Shortcut: assign this single product ID to every page in the presentation. |
| products | array | Page number (PageNumber field) to assign the product to. |
| targetOrg | string | Optional: specific org to use. Uses current target org if not specified. |
| topicIds | array | Array of Topic record IDs to assign to the presentation. |
| topicNames | array | Array of Topic names to look up and assign to the presentation. |
audit_mobile_configAudit LSC Mobile configuration against best practices. Runs validation rules to identify misconfigurations that cause login failures, sync issues, and other common problems.bulk_create_recordsCreate multiple records from a JSON array. Processes records sequentially and reports results. Useful for loading seed data (products, time periods, territory assignments) without Data Loader.| Parameter | Type | Description |
|---|---|---|
| records * | string | JSON array of record objects to create. Each object contains field name/value pairs. |
| sobjectType * | string | The SObject type (e.g., 'Product2', 'TimePeriod', 'ObjectTerritory2Association') |
| targetOrg | string | Optional: specific org. Uses current target org if not specified. |
bulk_update_recordsUpdate multiple records from a JSON array. Each record must include an 'Id' field. Processes records sequentially and reports results.| Parameter | Type | Description |
|---|---|---|
| records * | string | JSON array of record objects to update. Each must include an 'Id' field plus the fields to update. |
| sobjectType * | string | The SObject type (e.g., 'Account', 'Contact', 'Visit') |
| targetOrg | string | Optional: specific org. Uses current target org if not specified. |
check_account_configCheck LSC Account Management configuration. Queries accounts, healthcare providers, addresses, business licenses, affiliations, territory info, DCR managed fields, and mobile cache. CORRECT object names: Account, HealthcareProvider, ContactPointAddress, BusinessLicense, ProviderAffiliation, ProviderAcctTerritoryInfo, LifeSciDataChgDefMngFld. WRONG names (DO NOT USE): HealthcareProvider__c, ContactPointAddress__c, BusinessLicense__c, ProviderAffiliation__c, AccountAddress__c.check_activity_plan_configCheck LSC Activity Plan configuration. Queries time periods, activity plans, territory assignments, provider activity goals, goal measures, product goals, territory info, and mobile cache. CORRECT object names: ActivityPlan, ActivityPlanTerritory, TimePeriod, ProviderActivityGoal, ProviderActivityGoalMeasure, PrvdActvtyGoalMeasureProdt, ProviderAcctTerritoryInfo. WRONG names (DO NOT USE): ActivityPlan__c, ProviderActivityGoal__c, AccountGoal__c, TimePeriod__c, GoalMeasure__c.check_briefings_configCheck Briefings (Daily Podcasts) configuration. Validates toggle, licenses, permissions (StoriesUser/StoriesAdmin), account summarization, content definitions, scheduled flows, DB Schema records, and mobile cache. CORRECT object names: PrstContentDefinition, PrstCntntDefAssignment, PrstCntntUsageSummary, PrvdAccountTerritorySummary. WRONG names: PresentationContentDefinition, PresentationContentDefinitionAssignment, PresentationContentUsageSummary.check_eppv_configCheck Account Compliance (Japan EPPV/MID, Provider Engagement Compliance) configuration: Care Programs and products, compliance Action Plans (target HCO, cycles generated), the four cloned flows, the 11 DB Schema records, the Account Compliance tab, the Capture Compliance Activity quick action and the mobile cache. CORRECT object names: CareProgram, CareProgramProduct, ActionPlan, ActionPlanTemplate, ActionPlanTemplateVersion, ActionPlanTemplateAssignment, PrvdEngmtComplianceCycle, AssessmentTask. WRONG names (DO NOT USE): EPPV__c, ComplianceCycle__c, AccountCompliance__c.| Parameter | Type | Description |
|---|---|---|
| profileName | string | Optional: rep profile name. When given, DB Schema, tab and quick action must be assigned to this profile. |
| targetOrg | string | Optional: specific org to check. Uses current target org if not specified. |
check_lsc_setupCheck if Salesforce CLI is installed and orgs are authenticated. Run this first to ensure everything is set up correctly.check_mobile_cache_statusTHE ONLY WAY to check LSC mobile metadata cache status. NEVER use run_soql - objects like MobileMetadataCache__c, MobileApplicationDetail, lsc4ce__MobileMetadataCache__c DO NOT EXIST. The correct object is LifeSciMobileMetadataRecord (standard SOQL).| Parameter | Type | Description |
|---|---|---|
| targetOrg | string | Optional: specific org to query |
check_om_configCheck Order Management (quoted orders, Store Check) configuration against the known setup mistakes: DB Schema pairs (Quote/QuoteLineItem, Pricebook2/PricebookEntry) half assigned to a profile, price adjustment schedules with no EffectiveFrom, the Life Sciences Commercial pricing recipe mappings, StagePathPermissionsHandler, the Submitted quote stage lock, unpublished Quote product alignments (ProductTerritoryAvailability with no ProductTerrDtlAvailability), quote owners with no manager for Request for Unlock, locked stages with no View Line Items, Store Check visit routing, Quote status and document permissions of quote owners, Revenue Management, Product Configurator, Store Check and Translation Workbench settings, pricing procedure selection, rounding and price adjustment matrix steps, approval flow run-as, standard price book entries, Quote status values, and required licences. Causes with no automatic check are listed with the reason. Read-only. CORRECT object names: Quote, QuoteLineItem, Pricebook2, PricebookEntry, ProductTerritoryAvailability, ProductTerrDtlAvailability, PriceAdjustmentSchedule, LifeSciStagePath, LifeSciStageOperation. WRONG names (DO NOT USE): Order__c, QuotedOrder__c, ProductAvailability__c.| Parameter | Type | Description |
|---|---|---|
| targetOrg | string | Optional: specific org to check. Uses current target org if not specified. |
check_sample_configCheck LSC Sample Management configuration. Queries products, locations, inventory, production batches, sample limits, and related configuration. CORRECT object names: Product2, LifeSciMarketableProduct, Location, ProductionBatch, ProductItem, ProductBatchItem, InventoryOperation, ProductRequest, InventoryCountAssessment, ProductDisbursement, ProviderSampleLimit. WRONG names (DO NOT USE): SampleTransaction__c, SampleInventory__c, SampleLimit__c, SampleProduct__c, SampleLot__c.check_territory_configCheck LSC Territory Alignment configuration. Queries Territory2 model, ObjectTerritory2Association (explicit assignments), TerrGeoAssignmentRule (zip/brick rules), TerrProvAffilAssignRule (affiliation rules), and ProviderAcctTerritoryInfo records. CORRECT object names: Territory2, ObjectTerritory2Association, TerrGeoAssignmentRule, TerrProvAffilAssignRule, ProviderAcctTerritoryInfo. WRONG names (DO NOT USE): AccountTerritory__c, TerritoryAssignment__c, TerritoryInfo__c, AffiliationAlignmentRule__c.check_user_accessCheck one rep's setup end to end and find the first broken link: active user, license, LSC permission set license, permission sets, territory, the accounts that reach them, what DB Schema syncs to their iPad, actions, metadata cache and last sync. Use it for "why can't <rep> see/do X" about one named rep. It is a full trace (many queries), so never loop it over users: for "reps can't see X" check what reps share (the profile's navigation tabs, DB Schema, permission sets, metadata cache) and check at most one or two reps, asking the user which. It does not check navigation tabs. Read-only. Returns JSON (the user trace plus resolvedUser); when several users match it returns { matches } and nothing is traced, so ask which one.| Parameter | Type | Description |
|---|---|---|
| feature | string | Narrow the check to one feature by id or title, e.g. 'samples' or 'Sample Management' |
| user * | string | The rep's name, username, email or user Id |
check_user_configCheck LSC User Management configuration. Queries PackageLicense capacity, PermissionSetLicense (PSL) capacity, permission set assignments, user profiles, role hierarchy, and user-territory associations. CORRECT object names: User, Profile, UserRole, PermissionSet, PermissionSetAssignment, PermissionSetLicense, PermissionSetLicenseAssign, UserTerritory2Association, PackageLicense. WRONG names (DO NOT USE): User__c, UserProfile__c, PermissionSetAssignment__c, PSLAssignment__c, UserTerritory__c.check_visit_configCheck LSC Visit Management configuration. Queries visit record types, ProviderVisit record types, trigger handlers, compliance statements, territory info, and Admin Console settings. CORRECT object names: Visit, ProviderVisit, ProviderVisitProdDetailing, ProviderVisitProdDiscussion, ProviderAcctTerritoryInfo, ComplianceStatementDef. WRONG names (DO NOT USE): Visit__c, ProviderVisit__c, VisitSetting__c, VisitConfiguration__mdt, VisitRecordType__c, VisitType__c.create_admin_settingCreate a new Admin Console setting (LifeSciConfigRecord + LifeSciConfigFieldValue records). Use list_admin_settings to see existing settings before creating duplicates.| Parameter | Type | Description |
|---|---|---|
| category * | string | The category name (e.g., 'Visit', 'DataChangeRequest', 'Sample'). Must match an existing LifeSciConfigCategory. |
| developerName * | string | Unique developer name for the setting (alphanumeric + underscore only) |
| fields | array | Field name |
| isActive | boolean | Whether the setting is active (default: true) |
| isOrgLevel | boolean | Whether this is an org-level setting (default: false) |
| label * | string | Display label for the setting |
| targetOrg | string | Optional: specific org to create in |
create_custom_actionCreate an LSC Custom Action via Tooling API. Custom actions invoke Lightning components, flows, URLs, or Agentforce utterances.| Parameter | Type | Description |
|---|---|---|
| actionTarget * | string | The target: URL for URL type, component/flow name for App type, or utterance text for Utterance type |
| actionType * | string | Type of action: URL opens a URL, App invokes a component/flow, Utterance sends to Agentforce |
| developerName * | string | The developer name suffix (e.g., 'SearchGoogle'). The 'CustomAction_' prefix is added automatically. |
| entityName | string | For SObject entityType: the object API name (e.g., 'Account') |
| entityType * | string | Where the action is available |
| isActive | boolean | Whether the action is active |
| label * | string | The display label for the custom action (e.g., 'Search Google', 'Launch Flow') |
| profiles | array | Profile names that can see this action |
| targetOrg | string | Optional: specific org to create in |
| targetParameters | string | URL parameters (e.g., 'q=$record.Name' to pass record field values) |
| targetType | string | For URL type: Internal opens in app, External opens in browser |
create_db_schemaCreate a new DB Schema record for mobile object sync. Creates the LifeSciConfigRecord and all standard LifeSciConfigFieldValue records with correct data types. Names it DbSchema_{objectName} automatically.| Parameter | Type | Description |
|---|---|---|
| attachmentsSupport | string | How attachments are handled: CACHE (during sync), BACKGROUND (after sync), or empty (none). Default: none |
| isActive | boolean | Whether the record is active (default: true) |
| objectName * | string | Salesforce object API name (e.g., 'Product2', 'CustomObject__c') |
| oneWaySync | boolean | If true, data flows web→mobile only (read-only on mobile). Default: false |
| permissionSets | array | Optional: permission set API names (NOT labels) that gate this object's sync (e.g., ['LSC_Field_Sales']). Stored as a semicolon-delimited list in the PermissionSets field. The mobile app syncs the object for users who hold any listed permission set, in addition to the assigned profiles. |
| profiles | array | Optional: profile names to assign (e.g., ['Field Sales Representative', 'System Administrator']) |
| targetOrg | string | Optional: specific org to create in |
| type | string | Record type: DATA (synced objects) or CONFIGURATION (metadata-like records). Default: DATA |
| whereSoql | string | Optional SOQL WHERE clause filter. Must be wrapped in parentheses, e.g., '(IsActive = true)' |
create_quick_actionCreate an LSC Quick Action via Tooling API. Quick actions appear on the floating action button on mobile and in quick action menus on web.| Parameter | Type | Description |
|---|---|---|
| actionName * | string | The predefined action to invoke |
| developerName * | string | The developer name suffix (e.g., 'HomeEmail'). The 'QuickAction_' prefix is added automatically. |
| isActive | boolean | Whether the action is active |
| label * | string | The display label for the quick action (e.g., 'Home Email', 'Home Visit') |
| location * | string | Where the quick action appears |
| profiles | array | Profile names that can see this action (e.g., ['Field Sales Representative', 'District Manager']) |
| sortOrder * | number | Display order (lower numbers appear first). Use 1-5 for Home page actions. |
| targetOrg | string | Optional: specific org to create in |
create_recordCreate a new record in Salesforce| Parameter | Type | Description |
|---|---|---|
| objectName * | string | The API name of the object |
| targetOrg | string | |
| values * | object | Field values as key-value pairs (e.g., {Name: 'Test'}) |
delete_lsc_actionDelete an LSC Quick/Custom Action. Accepts a record ID or a MasterLabel/DeveloperName. NEVER use run_soql or delete_record — they will FAIL.| Parameter | Type | Description |
|---|---|---|
| actionId * | string | The record ID (from list_lsc_actions) OR the MasterLabel/DeveloperName of the action to delete |
| actionName | string | Optional: The action name/label for confirmation message |
| targetOrg | string | Optional: specific org to delete from |
delete_recordDelete a record from Salesforce| Parameter | Type | Description |
|---|---|---|
| objectName * | string | The API name of the object |
| recordId * | string | The record ID to delete |
| targetOrg | string |
deploy_metadataDeploy metadata to the target Salesforce org from a local source directory. Wraps `sf project deploy start`. Use for pushing permission sets, page layouts, flows, and other metadata from a local project.| Parameter | Type | Description |
|---|---|---|
| sourcePath * | string | Path to the local source directory containing metadata to deploy (e.g., 'force-app/main/default') |
| targetOrg | string | Optional: specific org to deploy to. Uses current target org if not specified. |
describe_sobjectGet metadata about a Salesforce object (fields, types, picklist values, lookup targets). LSC objects are standard objects without __c (Visit, ProviderVisit, HealthcareProvider). Not for Admin Console or DB Schema records.| Parameter | Type | Description |
|---|---|---|
| fields | array | Optional: only these fields, with their picklist values or lookup targets. Use it to check field names before a query or a field past the first 100. |
| objectName * | string | The API name of the object (e.g., Account, Contact, Visit__c) |
| targetOrg | string | Optional: specific org to query |
diagnose_lsc_issueDiagnose an LSC error or symptom. Matches it against known causes (misconfigurations found in support investigations) and validation rules, then runs their checks against the connected org and reports which causes are present, with the fix for each. Paste the exact error text when there is one.| Parameter | Type | Description |
|---|---|---|
| checkOrg | boolean | Run the checks against the connected org (default true). Read-only. |
| format | string | markdown (default) for a readable report; json for { items, checkedOrg, orgNote? }, the form the app renders as a card |
| suggested | array | Known cause ids that may fit, checked and listed as possible causes beside the word matches. Unknown ids are ignored. |
| symptom * | string | The error message or symptom, ideally the exact text (e.g., "No such column 'LastModifiedDate' on entity 'ContentDocumentLink'", 'Coming Soon tab on the iPad', 'accounts missing on the iPad') |
diff_orgsCompare LSC configuration between two Salesforce orgs. Produces a detailed per-record report comparing trigger handlers, admin settings, DB Schema records, and actions (with profile assignments) to identify configuration drift. Both orgs must be authenticated via SF CLI.| Parameter | Type | Description |
|---|---|---|
| scope | string | What to compare. Defaults to 'all'. |
| sourceOrg * | string | Alias or username of the first (source) org |
| targetOrg * | string | Alias or username of the second (target) org |
distribute_presentationDistribute a presentation to territories. Creates PresentationShare records with territory Group IDs. When includeChildren is true (default), uses TerritoryAndSubordinates groups so child territories automatically get access.| Parameter | Type | Description |
|---|---|---|
| includeChildren | boolean | When true (default), shares with TerritoryAndSubordinates group so all child territories get access. When false, shares with the exact Territory group only. |
| presentationId | string | Presentation record ID (18-char). Provide this OR presentationName. |
| presentationName | string | Presentation name to look up. Provide this OR presentationId. |
| targetOrg | string | Optional: specific org to use. Uses current target org if not specified. |
| territoryIds * | array | Territory2 IDs to distribute to. Children are included automatically when includeChildren is true. |
explain_lsc_conceptGet an explanation of a LSC concept, feature, or component| Parameter | Type | Description |
|---|---|---|
| concept * | string | The concept to explain (e.g., 'ARC', 'Provider Card', 'Sample Limits', 'Territory Alignment', 'Activity Plans') |
export_configExport LSC configuration (Admin Console settings, DB Schema, trigger handlers, actions) as JSON. Captures per-field DataType and profile assignments (format v1.1) so the snapshot can be faithfully re-applied with import_config. Use this to snapshot org configuration for comparison, migration, or backup.| Parameter | Type | Description |
|---|---|---|
| categories | array | Optional: which categories to export. Defaults to all. |
| targetOrg | string | Optional: specific org to export from. Uses current target org if not specified. |
generate_mobile_metadata_cacheGenerate LSC Mobile metadata cache programmatically. IMPORTANT: Always ASK the user which profiles to generate the cache for before calling this tool. Do not guess profile names.| Parameter | Type | Description |
|---|---|---|
| apiVersion | string | Salesforce API version (default: the org's API version) |
| prefix | string | Namespace prefix (default: "lsc4ce") |
| profileNames * | array | Array of profile names to generate cache for. ASK THE USER which profiles to use. Examples: ["Field Sales Representative", "Medical Sales Representative", "Key Account Manager"] |
| targetOrg | string | Optional: specific org to use |
get_db_schemaGet full details of a specific DB Schema record including all field values and profile assignments. Accepts short name (e.g., 'Visit') or full name ('DbSchema_Visit').| Parameter | Type | Description |
|---|---|---|
| name * | string | The DB Schema record name — accepts 'Visit' or 'DbSchema_Visit' |
| targetOrg | string | Optional: specific org to query |
get_lsc_admin_setupGet admin setup and configuration guidance for an LSC feature| Parameter | Type | Description |
|---|---|---|
| feature * | string | The feature to get admin setup for (e.g., 'sample-management', 'territory-alignment', 'visit-management') |
get_lsc_exerciseGet hands-on exercise documentation for LSC training| Parameter | Type | Description |
|---|---|---|
| slug * | string | The exercise slug (e.g., 'life-sciences-cloud-partner-enablement-hands-on-exercises-day-1-foundations') |
get_lsc_guideGet LSC guide documentation (developer guide, mobile setup guide, etc.)| Parameter | Type | Description |
|---|---|---|
| slug * | string | The guide slug (e.g., 'dev-guide', 'mobile-setup') |
get_lsc_help_docGet official Salesforce help documentation for a specific LSC topic| Parameter | Type | Description |
|---|---|---|
| slug * | string | The document slug (e.g., 'account-management', 'sample-management', 'activity-plans') |
get_lsc_module_docsGet detailed documentation for a specific LSC module| Parameter | Type | Description |
|---|---|---|
| module * | string | The module slug (e.g., 'account-management', 'sample-management', 'visit-management') |
get_lsc_troubleshootingGet LSC troubleshooting documentation including common issues and their resolutions| Parameter | Type | Description |
|---|---|---|
| topic | string | Optional: specific troubleshooting topic slug. Defaults to common-issues. |
get_org_statusGet a single dashboard view of the connected LSC org: alias, username, instance URL, installed packages, enabled features (via trigger handlers), mobile cache status, and territory model status.| Parameter | Type | Description |
|---|---|---|
| targetOrg | string | Optional: specific org to check. Uses current target org if not specified. |
get_recordRetrieve a specific record by ID from Salesforce. Not for Admin Console or DB Schema records: list_admin_settings and get_db_schema already return their full details.| Parameter | Type | Description |
|---|---|---|
| fields * | array | List of field API names to retrieve |
| objectName * | string | The API name of the object |
| recordId * | string | The 15 or 18 character record ID |
| targetOrg | string |
get_release_notesGet LSC release notes for a specific Salesforce release (e.g., 'Spring 26', 'Winter 26'). Lists available releases if no release is specified.health_checkRun a comprehensive LSC org health check. Checks trigger handler status, permission set assignments, Admin Console settings, orphaned territory assignments, DB Schema completeness, mobile cache freshness, and Order Management setup when the org uses it. Returns a summary with issues found and recommendations.| Parameter | Type | Description |
|---|---|---|
| targetOrg | string | Optional: specific org to check. Uses current target org if not specified. |
import_configImport LSC configuration from a snapshot into a target org, diff-driven and create + update-only (safe). Modes: 'report' (default) computes a diff and summarizes what would change; 'ui' opens a local browser review-and-apply UI on 127.0.0.1 with per-record checkboxes and live progress; 'apply' applies a specific selection headlessly. The target org is auto-backed-up to exports/ before any write. Never deletes or deactivates records that exist only in the target.| Parameter | Type | Description |
|---|---|---|
| mode | string | report (default): diff summary. ui: open the local review/apply web UI. apply: apply the given selection. |
| selection | array | For mode 'apply': record keys to apply (as shown in the report/UI, e.g. 'record:DbSchema_Visit'). |
| source | string | Source snapshot: inline JSON, or a path to an exports/*.json file. Omit to snapshot a live source org instead (see sourceOrg). |
| sourceOrg | string | Optional: snapshot this live org as the source instead of passing a file/JSON. |
| targetOrg | string | Target org to import into. Uses the current target org if not specified. |
install_sf_cliInstall the Salesforce CLI via npm. Only run this if the CLI is not already installed.list_admin_settingsList Admin Console settings (LifeSciConfigRecord + LifeSciConfigFieldValue) by category. Shows all settings with their field values. Use without a category to list all available categories.| Parameter | Type | Description |
|---|---|---|
| category | string | Optional: category name to filter (e.g., 'Visit', 'DataChangeRequest', 'QuickAction', 'CustomAction'). Omit to list all categories. |
| targetOrg | string | Optional: specific org to query |
list_db_schemaList all DB Schema records (mobile object sync configuration). Shows SObject, Type, Active status, SOQL filter, sync direction, and profile assignments. Use this instead of list_admin_settings for DbSchema.| Parameter | Type | Description |
|---|---|---|
| filter | string | Optional: filter by record name or SObject name (case-insensitive partial match) |
| targetOrg | string | Optional: specific org to query |
list_lsc_actionsTHE ONLY WAY to list LSC Quick Actions or Custom Actions. NEVER use run_soql for actions - objects like LifeSciCustomAction__mdt, CustomAction__c, LifeSciConfigType__c DO NOT EXIST. This tool uses Tooling API internally.| Parameter | Type | Description |
|---|---|---|
| actionType | string | Type of actions to list: quick, custom, or both |
| activeOnly | boolean | Only show active actions |
| targetOrg | string | Optional: specific org to query |
list_lsc_help_docsList all official Salesforce help documentation for LSClist_lsc_modulesList all available LSC modules with documentationlist_navigation_tabsList mobile navigation tabs configured in Admin Console > Mobile > UI Settings. Shows tab name, order, active status, and profile assignments.| Parameter | Type | Description |
|---|---|---|
| targetOrg | string | Optional: specific org to query |
list_permission_setsList LSC permission sets and permission set licenses (PSLs) with assignment counts and capacity. Shows which permission sets exist, how many users are assigned, and PSL capacity (total vs used vs available).| Parameter | Type | Description |
|---|---|---|
| includeAllNamespaces | boolean | If true, include all permission sets regardless of namespace. Default false = LSC-related only. |
| targetOrg | string | Optional: specific org to query. Uses current target org if not specified. |
list_sf_orgsList all authenticated Salesforce orgslist_trigger_handlersList LifeScienceTriggerHandler records showing active/inactive status. Use this to check which trigger handlers are enabled (e.g., DCR, Visit, Sample). Filter by object name to narrow results.| Parameter | Type | Description |
|---|---|---|
| objectName | string | Optional: filter by object name (e.g., 'Visit', 'Account', 'DataChangeRequest') |
| targetOrg | string | Optional: specific org to query |
list_usersList active LSC users with optional filters. Filter by profile, permission set, territory, or find users without territories or PSLs. CORRECT object names: User, PermissionSetAssignment, UserTerritory2Association.| Parameter | Type | Description |
|---|---|---|
| filterBy | string | Filter type: 'all' (default), 'profile', 'permission-set', 'territory', 'no-territory' (users without territory assignments), 'no-psl' (users without LSC PSLs) |
| filterValue | string | Partial match value for profile, permission-set, or territory filters |
| targetOrg | string | Optional: specific org to query. Uses current target org if not specified. |
list_validation_groupsList available validation groups for the audit_mobile_config toolopen_orgOpen the target Salesforce org in the default browser. Optionally navigate to a specific page path.| Parameter | Type | Description |
|---|---|---|
| path | string | Optional Salesforce page path to open (e.g., '/lightning/setup/SetupOneHome/home') |
profile_sync_volumePredict how much data the LSC mobile app will sync for specific users, before any device is involved. Resolves each user's DB Schema records (profile/permission set), substitutes WhereSoql tags ({USER.ID}, {USER.TERRITORY}, {ACCOUNT.IDS}, {OT2A.OBJ.IDS}, ...) per territory exactly as the app does, and runs COUNT() queries. Returns predicted records per table, estimated device SOQL request counts, and filters that fail to execute. Read-only; safe in production.| Parameter | Type | Description |
|---|---|---|
| idsPerQuery | number | Optional: ids inlined per COUNT() query for {ACCOUNT.IDS}/{OT2A.OBJ.IDS} filters (default 200) |
| territory | string | Optional: territory name or Id to profile. Default: each of the user's territories in the active model (up to 5). |
| users * | array | Usernames or User Ids of representative field users |
retrieve_metadataRetrieve metadata from the target Salesforce org to a local directory. Wraps `sf project retrieve start`. Use for pulling permission sets, page layouts, flows, and other metadata to inspect or version control.| Parameter | Type | Description |
|---|---|---|
| metadata * | string | Metadata type and optional name (e.g., 'PermissionSet:LSC_Admin', 'Layout:Visit-Visit Layout', 'ApexClass') |
| outputDir | string | Optional: local directory to write retrieved metadata. Defaults to current working directory. |
| targetOrg | string | Optional: specific org to retrieve from. Uses current target org if not specified. |
run_apexExecute anonymous Apex code against the target Salesforce org. Use for one-off tasks like running batch jobs, fixing data issues, or testing logic. Returns compilation status, execution result, and debug logs.| Parameter | Type | Description |
|---|---|---|
| code * | string | The Apex code to execute anonymously |
| targetOrg | string | Optional: specific org to run against. Uses current target org if not specified. |
run_perf_assessmentRun an LSC performance assessment against an NFR profile (YAML): for each persona, predicts sync volume (profile_sync_volume) and summarizes field telemetry (analyze_sync_telemetry), then evaluates every metric against the profile's warn/fail thresholds and reports pass/warn/fail with the user, territory, or table that drove each result. Optionally writes the full result as JSON for CI or archiving. Read-only against the org.| Parameter | Type | Description |
|---|---|---|
| outputPath | string | Optional: write the full result as JSON to this path |
| profilePath | string | Path to an NFR profile YAML file |
| profileYaml | string | Inline NFR profile YAML (alternative to profilePath) |
run_soqlExecute a SOQL query against the target Salesforce org. Not for Admin Console settings, DB Schema records, LSC actions or the mobile metadata cache: those are Tooling API records with their own tools (list_admin_settings, list_db_schema, list_lsc_actions, check_mobile_cache_status).| Parameter | Type | Description |
|---|---|---|
| query * | string | The SOQL query to execute |
| targetOrg | string | Optional: specific org to query. Uses current target org if not specified. |
search_lsc_knowledgeSearch the LSC knowledge base for specific topics or terms| Parameter | Type | Description |
|---|---|---|
| maxResults | number | Maximum number of results to return (default: 10) |
| query * | string | The search term or phrase to look for (e.g., 'sample limits', 'provider card', 'territory alignment') |
set_target_orgSet the target Salesforce org for ALL subsequent operations in this session. Once set, the choice is remembered — do NOT ask the user again or call this tool again unless the user explicitly wants to switch orgs.| Parameter | Type | Description |
|---|---|---|
| org * | string | The org alias or username to use as the target for operations |
simulate_initial_syncSimulate the network part of an LSC iOS app INITIAL sync for one end user, from Node. Authenticates as that user through the sf CLI, calls user-info, downloads and verifies the metadata archive (MD5), builds the table list and WHERE tags exactly as the app does, then downloads every table in the app's order (enhanced Connect flow or legacy REST flow, chosen from the org's settings). Reports per-table records, requests, bytes and seconds, plus metadata download time, so it can be compared with DeviceSyncSummary rows. Network time only (no SQLCipher writes, indexes or file binaries). Read-only against the org: it creates no records and registers no device. The username must already be authenticated in the sf CLI as the end user (not an admin) for device-accurate numbers.| Parameter | Type | Description |
|---|---|---|
| apiVersion | string | Optional: API version, e.g. 67.0 (default: the org's CLI API version) |
| deviceRamGB | number | Optional: RAM of the simulated iPad in GB (default 8) |
| dynamicBatchSize | boolean | Optional: legacy flow's dynamicBatchRequestSize setting (default true) |
| exclude | array | Optional: skip these SObjects |
| forceFlow | string | Optional: override the flow chosen from the org's settings |
| include | array | Optional: only download these SObjects |
| legacyPaging | string | Legacy flow only: fetch later pages through composite/batch like the app (batch), or follow nextRecordsUrl (sequential) |
| maxRecordsPerTable | number | Optional: stop each table after this many records |
| maxSeconds | number | Stop starting new work after this many seconds (default 900) |
| maxTotalRecords | number | Optional: stop the whole run after this many records |
| network | object | Optional: add network conditions (3g, 4g, 5g, wifi presets are approximate; custom needs rttMs, downMbps, upMbps). Can only slow this machine's connection down. |
| outputPath | string | Optional: write the full result as JSON to this path |
| tableTimeoutSeconds | number | Per-table time limit (default 300) |
| territory | string | Optional: territory name, id or developer name (default: the user's first leaf territory) |
| username * | string | sf CLI alias or username of the END USER, already authenticated (e.g. `sf org login jwt --username <user> --client-id <key> --jwt-key-file <file> --instance-url <url>` or `sf org login web`) |
studio_access_optionsLSC Studio (GUI data): permission sets, permission set groups, and territories that can be given to a user (at most 2,000 of each; `truncated` gives totals — pass `search` to find others by name). Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| search | string |
studio_api_versionLSC Studio (GUI data): the Salesforce API version calls to the connected org use, the version pinned for it (null: the org's own), the org's own version and the versions it serves, newest first. Returns JSON { version, pinned, orgDefault, available }.studio_app_checkLSC Studio (GUI only): check an LSC App's files — lint (meta file, targets, mobileHeight, naming), a real compile, the offline scan, and (when an org is connected) whether DB Schema syncs the objects it reads. Needs no org to compile. Read-only. Returns JSON { ok, issues, offline, script?, placeholders, mobileHeight?, objects? }.| Parameter | Type | Description |
|---|---|---|
| profile | string | Judge "synced" for this profile (when no userId) |
| userId | string | Judge "synced" for this user's profile and permission sets |
studio_app_deployLSC Studio (GUI only): deploy an LSC App — its bundles; for a record page or quick action app the LightningWebComponent quick action; for a nav tab app the App page, custom tab, and (when given) the app membership and profile tab visibility. WRITES to the org. Only called from the Studio UI after the user confirms. Refuses if the app has lint errors or the target org isn't `expectedOrg`. Returns JSON { ok, deployed, error?, warnings, production }.| Parameter | Type | Description |
|---|---|---|
| expectedOrg * | string | The org the user confirmed — the deploy is refused if the target org differs |
studio_app_deploy_planLSC Studio (GUI data): what deploying an LSC App would write (components, e.g. LightningComponentBundle, QuickAction, FlexiPage, CustomTab, Profile), which of those already exist in the org and would be overwritten, whether the org is production (not a sandbox and not a trial), and warnings. Read-only. Returns JSON { components, existing, production, warnings }.studio_app_describeLSC Studio (GUI only): compact descriptions (real field API names, types, picklist values, whether DB Schema syncs it to the iPad, record count) of up to ${MAX_DESCRIBE_OBJECTS} objects, for the app builder. Read-only. Returns JSON { objects }.| Parameter | Type | Description |
|---|---|---|
| objects * | array |
studio_app_guideLSC Studio (GUI only): the LSC App builder's system prompt — the rules, offline data patterns, design guidance and workflow it follows. Read-only; no org needed. Returns JSON { guide }.studio_app_listLSC Studio (GUI only): the org's LSC apps (unmanaged lscMobileInline_* bundles) with target, objects and last change. Read-only. Returns JSON { apps }.studio_app_navLSC Studio (GUI data): which Lightning app a profile's published iPad tab bar comes from, found by lining the tabs the profile's last publish knew of up with the tabs of the apps the profile can open. Returns JSON: `{ app: { fullName, label, installed } }`, or `{ app: null, reason }` when it can't be told (nothing fits, or two fit equally). Read-only.| Parameter | Type | Description |
|---|---|---|
| profile * | string | |
| tabs * | array |
studio_app_sampleLSC Studio (GUI only): up to 5 real records from a SELECT-only SOQL query (anything else is refused, LIMIT is forced to 5 or less), so the app builder sees real values. Read-only. Returns JSON { records, totalSize }.| Parameter | Type | Description |
|---|---|---|
| soql * | string |
studio_app_sourceLSC Studio (GUI only): an LSC app's files from the org — the lscMobileInline_* bundle and the c/ components it uses. Read-only. Returns JSON { name, target, objectApiName?, files }.| Parameter | Type | Description |
|---|---|---|
| name * | string |
studio_app_starter_sourceLSC Studio (GUI only): one starter LSC app's files (the lscMobileInline_* bundle and the c/ components it uses) and where they came from. Read-only; no org needed. Returns JSON { name, target, objectApiName?, files, starter }.| Parameter | Type | Description |
|---|---|---|
| id * | string |
studio_app_startersLSC Studio (GUI only): starter LSC apps the builder can begin from — working apps from the afls-ideas GitHub account, copied at pinned commits — with label, description, target, objects read and follow-up prompts. Read-only; no org needed. Returns JSON { starters }.studio_app_tab_optionsLSC Studio (GUI data): who can be given a nav tab app and which apps can hold it — profiles with active users (LSC permission set holders first; `name` is the metadata name `tab.profiles` takes) and the org's Lightning apps (`fullName` is what `tab.application` takes). Read-only. Returns JSON { profiles: { label, name, activeUsers, lscUsers }[], apps: { fullName, label }[] }.studio_apply_fixLSC Studio (GUI only): apply a previewed Studio fix. WRITES to the org. Only called from the Studio UI after the user confirms. Refuses if the target org isn't `expectedOrg`. Returns JSON with an undo fix.| Parameter | Type | Description |
|---|---|---|
| expectedOrg * | string | The org the user confirmed — the fix is refused if the target org differs |
studio_component_catalogLSC Studio (GUI data): the components "Insert component…" offers for a Home or record Lightning page in the iPad preview — Recent items, the org's inline LWCs, related lists of synced child objects, and greyed-out ones that need Lightning App Builder. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| pageType * | string | |
| sobject | string |
studio_component_propsLSC Studio (GUI data): the properties of a Home or record Lightning page component for the iPad preview's properties sheet — a custom LWC's from its js-meta.xml targetConfigs, standard and LSC components from a curated table — each with type, range, options, default and whether the iPad reads it. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| component * | string | |
| pageType | string |
studio_connected_orgLSC Studio (GUI data): the org alias or username the tools are connected to. Returns JSON { org }.studio_consent_dataLSC Studio (GUI data): the Capture Consent sheet for one account, read-only: the org's consent settings, subscriptions with their channels and the account's contact points and active consents, laid out as the device's mapper does (module/OPT/Consent). Returns JSON { consent } or { error }.| Parameter | Type | Description |
|---|---|---|
| accountId * | string |
studio_content_draftLSC Studio (GUI data): a page Roz drafts for Intelligent Content, kept on this computer in the engine's CLM folder (drafts/<draftId>), never in the org. `files` (with `replace`, all of them in place of the old ones) are written first; slides are .html files at the top (01_intro.html), other files at most one folder deep. Returns JSON { player, checks, files, thumbnails } — the draft laid out for the live player like an org page, the problems that keep it from being a page (errors) or that the iPad shows differently (warnings), its files, and the slide thumbnails the app still has to draw. `remove: true` deletes the draft instead. Nothing is sent to the org.| Parameter | Type | Description |
|---|---|---|
| files | array | |
| name | string | |
| remove | boolean | |
| replace | boolean |
studio_content_libraryLSC Studio (GUI data): the Intelligent Content builder's library — every presentation (not deleted) with status, dates, page count, topics, territories it's distributed to and a first-page image for the most recent. Read-only. Returns JSON.studio_content_newLSC Studio (GUI data): what a new Intelligent Content presentation can be made from — the org's active HTML ZIP pages (a PDF presentation shows one PDF, so its pages can't be put together), topics, products and territories, plus the Status and gesture values the org takes and whether it's production. Read-only. Returns JSON.studio_content_page_imagesLSC Studio (GUI data): the first image of each Intelligent Content page by id (pages picked for a new presentation). Read-only. Returns JSON { images: { [pageId]: dataUrl } }.| Parameter | Type | Description |
|---|---|---|
| pageIds * | array |
studio_content_playerLSC Studio (GUI data): one Intelligent Content presentation laid out for the iPad preview's live player, as LSC Mobile keeps it: each active page's ZIP unpacked into its own folder with its slides rendered as Mustache templates and the player script added, or a PDF presentation's pages drawn as images; additional-content pages listed as assets. Files go to this user's private temp folder for the Electron app to serve to a sandboxed frame. Read-only against the org; never cached. Returns JSON { root, presentation, pages, slides, assets, notes }.| Parameter | Type | Description |
|---|---|---|
| presentationId * | string | |
| userId | string |
studio_content_presentationLSC Studio (GUI data): one presentation for the Intelligent Content builder — its settings, pages in order (required, products), topics and territories as a draft, the pages, topics, products and territories that can be added, and which pages other presentations share. Never cached. Read-only. Returns JSON.studio_custom_scriptLSC Studio (GUI data): one custom script as the org holds it now — CodeText, the LWC bundle's code and other files, and whether they have drifted apart. Never cached. Read-only. Returns JSON.studio_custom_scriptsLSC Studio (GUI data): the custom script library — every script with its type, object, status (will it run), LWC bundle, stage object assignments and static-check counts, plus the org's stage objects. Read-only. Returns JSON.studio_diagnoseLSC Studio (GUI data): match a pasted error or symptom against known causes and validation rules and, with `checkOrg`, run their checks against the connected org — the data behind diagnose_lsc_issue. Read-only. Returns JSON { items, checkedOrg, orgNote? }.| Parameter | Type | Description |
|---|---|---|
| checkOrg | boolean | Run the matched checks against the connected org (default true) |
| text * | string | The error message or symptom |
studio_driftLSC Studio (GUI data): configuration snapshots for "What changed" — list saved snapshots, save one of the org now, diff the org now against one, or delete one. Reads the org; writes only local snapshot files. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| days | number | For list: how many days of recent changes (default 14) |
| id | string | Snapshot id, for diff and delete |
| label | string | Label for a new snapshot |
| refresh | boolean | Read the org again instead of reusing reads shared in the last minute |
studio_export_sourceLSC Studio (GUI data): save the org's current version of applied Studio changes (or named metadata items) as sfdx source files in a local folder (force-app/main/default, or the project's default package), plus manifest/studio-package.xml. Read-only against the org — it only retrieves. A file already in the folder that differs is replaced only when Git has it committed and unedited, its hash is in `known` (what Studio last wrote) or its path is in `replace`; otherwise it's left alone and listed in `conflicts`. Returns JSON { folder, packageDir, manifest, files, toRemove, orgOnly (changes with no source file, with why), missing, notes, conflicts, hashes (of the files written) }.| Parameter | Type | Description |
|---|---|---|
| changes | array | |
| folder * | string | |
| items | array | |
| known | object | |
| replace | array |
studio_feature_mapLSC Studio (GUI data): collect every configuration surface for one LSC feature (objects, record types, layouts, custom scripts, validation rules, Apex triggers, flows, trigger handlers, DB Schema, actions, Admin Console settings, compliance) with health findings. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| featureId * | string | Feature id from studio_list_features, e.g. 'visit' |
| refresh | boolean | Read the org again instead of reusing reads shared in the last minute |
studio_feature_map_progressLSC Studio (GUI data): which surface a running studio_feature_map (or, with `readiness`, studio_readiness) load for a feature is on — steps waiting / running / done / failed, with start and finish times and counts like "12 layouts" — or null when none has run. Read-only; makes no org calls. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| featureId * | string | |
| readiness | boolean |
studio_fix_for_toolLSC Studio (chat write gate, read-only): the Studio changes a chat write tool call would make, built from the org as it is now, for the pending-changes tray. Returns JSON { changes: [{ fix, affects? }], note? } or { unsupported: reason } when Studio can't express the call exactly. Nothing is written.| Parameter | Type | Description |
|---|---|---|
| input * | object | The arguments the model passed to it |
| name * | string | The write tool's name, e.g. update_db_schema |
studio_fix_progressLSC Studio (GUI only): the steps each change of a running studio_preview_fix / studio_apply_fix batch is on (waiting / running / done / failed, with times and counts), keyed by the `progress.id` those calls were given; null once it has expired. Read-only; makes no org calls. Returns JSON { progress }.| Parameter | Type | Description |
|---|---|---|
| id * | string |
studio_ipad_publishedLSC Studio (GUI data): what the iPad actually renders for one user of a profile — tabs, Home page components, record layouts, and list views — read from the profile's published mobile metadata cache with the user's permission sets merged in (the profile's most typical user unless userId is given). Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| language | string | Draw the iPad in this language (a translation file in the cache, like de or pt_BR) instead of the user's own; one the cache lacks falls back to en_US as the app does. |
| mobileLogins | array | Logins Studio made through the LSC mobile app's connected app. When one belongs to the previewed rep, the live screens and records are read with it (their own sharing and field-level security, rows limited to their sync filter); otherwise the sf CLI connection reads and approximates. Tokens are used for this load only and never returned. |
| profile * | string | |
| userId | string |
studio_ipad_published_progressLSC Studio (GUI data): which step a running studio_ipad_published load for a profile is on (steps waiting / running / done / failed, with start and finish times), or null when none has run. Read-only; makes no org calls. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| profile * | string |
studio_ipad_published_usersLSC Studio (GUI data): active users of a profile whose name contains `search`, for the iPad preview's user picker when the profile has more users than it lists. Read-only. Returns JSON { users }.| Parameter | Type | Description |
|---|---|---|
| profile * | string | |
| search * | string |
studio_ipad_reportsLSC Studio (GUI data): the Reports tab of the published iPad for one user — the tab's custom settings and, with ShowSalesforceReports, the folder and report tree the user can read (no report results). Read when the Reports tab is first opened rather than with studio_ipad_published. Read-only. Returns JSON { settings, reports?, dataNotes? }.| Parameter | Type | Description |
|---|---|---|
| userId * | string |
studio_item_detailLSC Studio (GUI data): fetch detail (validation rule formula, Apex trigger body, custom script code, Visit layout sidebar, flow outline and health checks) for one item. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| id * | string | Salesforce record Id (for flows, the FlowDefinitionView DurableId) |
| kind * | string |
studio_kam_planLSC Studio (GUI data): one Key Account Management plan the iPad preview's list didn't include (the preview reads the 25 most recently changed plans), with its objectives, action plans, tactics, stakeholders and participants, read as the connected account over the tables `sync` names (the viewer's sync filters can't be applied here). Read-only. Returns JSON { plan, mode, nomenclature, notes }; plan is null when the account can't read it.| Parameter | Type | Description |
|---|---|---|
| object * | string | |
| planId * | string | |
| sync * | array |
studio_list_featuresLSC Studio (GUI data): list the features Studio can map. Returns JSON.studio_list_profilesLSC Studio (GUI data): list profiles with active users, for Studio's "View as" lens. Read-only. Returns JSON.studio_lwc_bundleLSC Studio (GUI data): one inline LWC (lscMobileInline_*) and the c/ components it uses, compiled with lightning-base-components and Studio's stand-ins for LDS and other platform modules into a script for the iPad preview's live frame, plus its offline check. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| name * | string |
studio_lwc_requestLSC Studio (GUI data): answers a request from a live-previewed inline LWC — UI API GETs and GraphQL queries only, as the connected user or, with mobileLogin, as the previewed rep; writes are refused. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| body | any | |
| method * | string | |
| mobileLogin | object | The previewed rep's login, made by Studio through the LSC mobile app's connected app; answered as them instead of the sf CLI connection |
| path * | string |
studio_manager_dataLSC Studio (GUI data): on-demand reads for the iPad preview's manager screens, read-only. kind dashboardDetail: one dashboard's describe (and cached results when it runs as a specified user) as { detail }. kind myTeamWeek: one territory's activities for the week holding `date` (Connect API weekly-territory-activities), mapped like the device's My Team tab. Returns JSON { week } or { error }.| Parameter | Type | Description |
|---|---|---|
| colors | object | Marker colour per activity type, from the snapshot's My Team screen |
| dashboardId | string | |
| date | string | |
| firstDay | string | |
| kind * | string | |
| locale | string | |
| territoryId | string | |
| timeZone | string |
studio_metadata_cacheLSC Studio (GUI data): the Metadata cache page — every LSC profile's metadata cache (what its iPads download now, size, a newer failed or running attempt, how many Admin Console changes it is behind) and the newest generation jobs with each profile's record and the start of its ErrorLog. Read-only. Returns JSON.studio_metadata_cache_contentsLSC Studio (GUI data): the files inside one metadata cache record's ZIP (path, size, compressed size), downloading it to a temporary folder that keeps the last few. Read-only. Returns JSON.studio_metadata_cache_fileLSC Studio (GUI data): one file from a metadata cache record's ZIP — text (files over 24 MB cut to their first 1 MB, marked truncated), an image as a data URL, or marked binary. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| path * | string |
studio_metadata_cache_logLSC Studio (GUI data): the full ErrorLog of one metadata cache record and, for a generation job, of each profile's record. Read-only. Returns JSON.studio_metadata_docLSC Studio (GUI data): a page layout, compact layout, Lightning page or list view as it is in the org now — a layout's sections, fields, related lists and the profiles using it; a compact layout's fields, the fields it could take and the record types using it; a Lightning page's regions, facets and components, the profiles and apps it's assigned in and whether it's managed; a list view's columns, filters, filter scope, who it's shared with and the object's fields; a Lightning app's tab bar (the tabs that can be arranged, the package's fixed ones, the tabs it could take and the profiles that open it) — and whether the org is production, for editing it in the iPad preview. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| fullName * | string | |
| type * | string |
studio_object_syncLSC Studio (GUI data): the Object sync page — every DB Schema record (Admin Console › Mobile › Object Metadata Cache Configuration) with its object, type, active switch, validation status, filter, profile and permission set assignments, every field value, the sync query and Studio's findings (errors, invalid, unassigned, duplicates per profile), plus the org's queryable objects. Read-only. Returns JSON.studio_object_sync_checkLSC Studio (GUI data): check DB Schema records the way metadata cache generation would trip over them — the object exists and can be queried, the delta date field and synced fields are on it, and the filter runs as a one-row query with its tags filled with sample values. Read-only: it doesn't start the Admin Console's Validate job or change Status. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| developerNames * | array |
studio_page_reachLSC Studio (GUI data): the profiles a Lightning page is assigned to and the apps it's the default page of, for when `studio_metadata_doc` answered before that was worked out (`reachPending`). Read-only. Returns JSON (null fields when it couldn't be read).| Parameter | Type | Description |
|---|---|---|
| fullName * | string |
studio_perf_activeLSC Studio (GUI data): the performance run in progress for the connected org, if any, so the GUI can reattach to it. Returns JSON { job } (null when nothing is running).studio_perf_cancelLSC Studio (GUI data): stop a running performance run; queries already in flight finish, no new ones start. Returns JSON status.| Parameter | Type | Description |
|---|---|---|
| jobId * | string |
studio_perf_checkLSC Studio (GUI data): pre-flight check of a test plan against the connected org — users that don't exist or are inactive, profile selections with no users, and territories none of a persona's users are in. Read-only. Returns JSON { org, issues, personas }.studio_perf_parse_planLSC Studio (GUI data): validate an NFR profile YAML (the run_perf_assessment format) and return it as a JSON test plan. Doesn't touch the org. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| yaml * | string |
studio_perf_reportLSC Studio (GUI data): render a finished performance run (the result from studio_perf_status) as a shareable markdown report. Doesn't touch the org. Returns JSON { markdown }.| Parameter | Type | Description |
|---|---|---|
| days | number | |
| result * | object |
studio_perf_startLSC Studio (GUI data): start a performance assessment of a test plan (predicted sync volume + field telemetry per persona, evaluated against NFR thresholds) as a background job. Read-only against the org. Returns JSON status; poll with studio_perf_status.| Parameter | Type | Description |
|---|---|---|
| mobileLogins | array | Logins Studio made through the LSC mobile app's connected app. A persona user whose username matches one gets their exact table list from their own metadata download instead of the ObjectPermissions approximation; tokens are used for this job only and never returned. |
studio_perf_statusLSC Studio (GUI data): progress of a performance run started by studio_perf_start, with the full result once done. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| jobId * | string |
studio_perf_territoriesLSC Studio (GUI data): territories in the active model that a persona's users are in (listed users plus those a profile selection picks), with how many of them are in each. Read-only. Returns JSON { territories }.| Parameter | Type | Description |
|---|---|---|
| select | object | |
| users * | array |
studio_perf_usersLSC Studio (GUI data): active users to test in a performance plan, filtered by name/username search and/or profile, most territories first, with each user's DeviceSyncSummary count over the last `days` days (default 30). Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| days | number | |
| profile | string | |
| search | string |
studio_preview_fixLSC Studio (GUI only): preview a Studio fix against the live org — the exact changes, warnings, and whether it can be applied. Read-only. With `progress` ({ id, index, total }), the steps it takes can be read with studio_fix_progress while it runs. Returns JSON.studio_publish_mobileLSC Studio (GUI only): start regenerating the LSC Mobile metadata cache for the given profiles ("Publish to iPad"). WRITES to the org. Refuses if the target org isn't `expectedOrg`. Returns JSON status; poll with studio_publish_status.| Parameter | Type | Description |
|---|---|---|
| expectedOrg * | string | |
| profiles * | array |
studio_publish_statusLSC Studio (GUI only): check a "Publish to iPad" metadata cache generation. Read-only. Returns JSON.studio_readinessLSC Studio (GUI data): is one LSC feature ready for the field? Runs the feature's validation rules and Studio's checks (switched on, access, data, settings, iPad), each pass/fail/unknown with how to fix it. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| featureId * | string | Feature id from studio_list_features, e.g. 'visit' |
| profile | string | Check for this profile (its name) only; checks that can't tell profiles apart are marked everyProfile |
| refresh | boolean | Read the org again instead of reusing reads shared in the last minute |
studio_report_dataLSC Studio (GUI data): one report's result for the iPad preview's View Report sheet, run read-only as the connected account (Summary and Tabular only; first 150 rows), reused for six hours from memory. Read-only. Returns JSON { id, data } — data is null when the report couldn't be run here. `userId` is the previewed rep; it doesn't change the run.| Parameter | Type | Description |
|---|---|---|
| reportId * | string | |
| userId | string |
studio_scopeLSC Studio (GUI data): every profile with active users in the connected org, grouped as iPad users, web-only LSC users, admins and integration users, or not LSC, with why and user counts — the Overview's "Readiness for" picker lists the first two. Read-only. Returns JSON { profiles }.studio_script_testLSC Studio (GUI data): run a custom script in a sandbox against a real record, as the connected admin (a simulation, not the rep). Reads the org with read-only SOQL; setValue/save are recorded, never written. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| code * | string | |
| env | object | |
| objectName | string | |
| operationEventType | string | |
| platform * | string | |
| recordId | string | |
| type * | string | |
| userId | string |
studio_script_test_recordsLSC Studio (GUI data): recent records a custom script can be tested against (Visit Action Validation: ProviderVisit records with account, date, status and child counts; other types: records of `objectName`). Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| objectName | string | |
| search | string | |
| type * | string |
studio_set_api_versionLSC Studio (GUI): pin the Salesforce API version for the connected org, or (null) go back to the org's own version. Refuses a version the org doesn't serve. Returns the same JSON as studio_api_version.| Parameter | Type | Description |
|---|---|---|
| version * | string | e.g. "66.0", or null for the org's own version |
studio_setup_linksLSC Studio (GUI data): the deepest Salesforce Setup page for each reference (page layout, field, compact layout, Lightning page, list view, record type, validation rule, Apex trigger, flow, user, profile, permission set, territory, record), as org-relative paths for `sf org open --path`; `exact` is false when the item's Id couldn't be found and the path is its list page. Read-only, cached per org. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| refs * | array |
studio_setup_overviewLSC Studio (GUI data): org-wide setup signals no single feature owns — license capacity, metadata cache freshness, changes not yet published to the iPad, territory model. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| profile | string | Check for this profile (its name) only; checks that can't tell profiles apart are marked everyProfile |
| refresh | boolean | Read the org again instead of reusing reads shared in the last minute |
studio_signoff_reportLSC Studio (GUI data): render a plain-language go-live sign-off report from a performance assessment result and optional first-sync simulation results, with the detailed reports as an appendix. Doesn't touch the org. Returns JSON { markdown }.studio_sim_activeLSC Studio (GUI data): the first-sync simulation in progress, if any, so the GUI can reattach to it. Returns JSON { job } (null when nothing is running).studio_sim_cancelLSC Studio (GUI data): stop a running first-sync simulation; requests in flight are aborted and no new tables start. Returns JSON status.| Parameter | Type | Description |
|---|---|---|
| jobId * | string |
studio_sim_reportLSC Studio (GUI data): render a finished first-sync simulation (the result from studio_sim_status) as a shareable markdown report. Doesn't touch the org. Returns JSON { markdown }.| Parameter | Type | Description |
|---|---|---|
| result * | object |
studio_sim_startLSC Studio (GUI data): start a first-sync simulation (the network part of an iOS initial sync: user-info, metadata archive, every table's data) as a background job, running as the given sf CLI connection — admin or end user — or as a mobileLogin the Studio app made through the LSC mobile app's connected app (the token is used for this job only and never returned). Read-only against the org. Returns JSON status; poll with studio_sim_status.| Parameter | Type | Description |
|---|---|---|
| connection * | string | sf CLI alias or username to run as; the label when mobileLogin is given |
| mobileLogin | object | A login Studio made through the LSC mobile app's connected app; used instead of the sf CLI connection |
| options | object | RAM of the simulated iPad in GB (default 8); sizes metadata chunks and legacy dynamic batches |
studio_sim_statusLSC Studio (GUI data): progress of a first-sync simulation started by studio_sim_start, with the result once finished (also when cancelled, covering what was downloaded). Returns JSON.| Parameter | Type | Description |
|---|---|---|
| jobId * | string |
studio_survey_dataLSC Studio (GUI data): the Surveys sheet for one account, read-only. Without developerName it lists the account's surveys (newest invitation per survey, Open / Completed status from the viewer's response); with developerName, cacheRecordId and optionally version it returns that survey's pages and questions from the flow in the profile's metadata cache, typed as the device's mapper does (SurveysQuestionViewModel). Returns JSON { surveys, notes } or { form } or { error }.| Parameter | Type | Description |
|---|---|---|
| accountId | string | |
| cacheRecordId | string | |
| developerName | string | |
| version | number | |
| viewerUserId | string |
studio_sync_impactLSC Studio (GUI data): predicted mobile sync volume before and after pending DB Schema changes (Studio fixes), per affected profile. Read-only — nothing is written. Returns JSON.studio_sync_overviewLSC Studio (GUI data): org-wide mobile sync health from DeviceSyncSummary over the last `days` days (default 30) — trend, failure rate, by app version and network — and the users most at risk. Read-only. Returns JSON.studio_sync_userLSC Studio (GUI data): one user's predicted mobile sync volume per table with the DB Schema record behind each and why heavy tables are heavy, plus their own recent syncs. Read-only. Returns JSON.studio_sync_user_progressLSC Studio (GUI data): how far a running studio_sync_user for this user has got (phase, tables counted of all, and per territory), or null when none ran lately. Read-only; makes no org calls. Returns JSON { progress }.| Parameter | Type | Description |
|---|---|---|
| userId * | string |
studio_unpublishedLSC Studio (GUI data): what changed in the org after a profile's live metadata cache was generated, so the iPad preview can say what iPads don't have yet. Layouts, compact layouts, Lightning pages, record types, tabs and Admin Console records (DB Schema, tabs, actions, settings) that reach the profile, each with who changed it and when; list views are marked live (the iPad reads them from the org). `known` limits document changes to the ones the profile's snapshot references. Kinds that couldn't be read come back in `errors`, never as "no changes". Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| known | object | |
| profile * | string |
studio_user_accessLSC Studio (GUI data): a user's permission set licenses, permission sets, permission set groups, and territories. Read-only. Returns JSON.studio_user_traceLSC Studio (GUI data): check one user's setup end to end — licenses, permission sets, territory, what syncs to their iPad, metadata cache, last sync — optionally for one feature, and point at the first broken link. Read-only. Returns JSON.| Parameter | Type | Description |
|---|---|---|
| featureId | string | Feature id to narrow the check to, e.g. 'samples' |
| refresh | boolean | Read the org again instead of reusing reads shared in the last minute |
toggle_db_schemaEnable or disable a DB Schema record (sets IsActive). Simple shortcut for the most common operation. Accepts short name (e.g., 'Visit') or full name ('DbSchema_Visit').| Parameter | Type | Description |
|---|---|---|
| active * | boolean | Set to true to enable, false to disable |
| name * | string | The DB Schema record name — accepts 'Visit' or 'DbSchema_Visit' |
| targetOrg | string | Optional: specific org to update |
toggle_trigger_handlerEnable or disable a LifeScienceTriggerHandler by DeveloperName. Use list_trigger_handlers first to see available handlers. This is the correct way to enable/disable features like DCR, Visit compliance, etc.| Parameter | Type | Description |
|---|---|---|
| active * | boolean | Set to true to enable, false to disable |
| handlerName * | string | The DeveloperName of the trigger handler (e.g., 'DCRHandler', 'VisitComplianceHandler') |
| targetOrg | string | Optional: specific org to update |
unassign_permission_setRemove a permission set assignment from one or more users. Finds existing PermissionSetAssignment records and deletes them.| Parameter | Type | Description |
|---|---|---|
| permissionSetName * | string | Permission set label (e.g., 'LSC User') or API name (e.g., 'lsc4ce__LifeSciencesCloudUser') |
| targetOrg | string | Optional: specific org. Uses current target org if not specified. |
| userIds | array | Array of User IDs to remove the permission set from |
| usernames | array | Array of usernames (email format) to remove the permission set from. Will be resolved to User IDs. |
update_admin_settingUpdate an existing Admin Console setting (LifeSciConfigRecord) or its field values (LifeSciConfigFieldValue). Use list_admin_settings first to get record IDs.| Parameter | Type | Description |
|---|---|---|
| fieldValues | array | The FieldName of the LifeSciConfigFieldValue to update |
| fields | object | Top-level fields to update on the LifeSciConfigRecord (e.g., { IsActive: true, MasterLabel: 'New Label' }) |
| recordId * | string | The LifeSciConfigRecord ID to update (from list_admin_settings output) |
| targetOrg | string | Optional: specific org to update |
update_db_schemaUpdate an existing DB Schema record. Looks up the record by name and updates only specified fields using correct data type mappings. Also assigns or removes profiles (addProfiles / removeProfiles): a rep whose profile isn't on the record doesn't get the object, which shows on the iPad as 'SObject <name> not found'. Accepts short name (e.g., 'Visit') or full name ('DbSchema_Visit').| Parameter | Type | Description |
|---|---|---|
| addProfiles | array | Profile names (exact, e.g. 'LS PH Field Sales Representative') to assign to this record, so those profiles' iPads download the object. Use this when a rep gets 'SObject <name> not found': the record's profile list is what decides who syncs the table. |
| attachmentsSupport | string | How attachments are handled |
| deltaDateField | string | Field used for delta sync (e.g., 'LastModifiedDate') |
| isActive | boolean | Enable (true) or disable (false) the record |
| mandatoryFields | string | Comma-separated list of mandatory fields |
| name * | string | The DB Schema record name — accepts 'Visit' or 'DbSchema_Visit' |
| oneWaySync | boolean | Set web→mobile only sync (true) or bidirectional (false) |
| permissionSets | array | Permission set API names (NOT labels) that gate this object's sync. Stored as a semicolon-delimited list in the PermissionSets field. Pass an empty array to clear. This adds to the record's profile assignments, it doesn't replace them: to make a profile sync the object, use addProfiles. |
| removeProfiles | array | Profile names to take off this record (stops the object syncing for them) |
| targetOrg | string | Optional: specific org to update |
| whereSoql | string | New SOQL WHERE clause filter. Must be wrapped in parentheses. |
update_lsc_actionUpdate an existing LSC Quick or Custom Action. Accepts a record ID or MasterLabel/DeveloperName. Can update the label, activation status, and field values (Location, ActionName, SortOrder, Profiles, etc.).| Parameter | Type | Description |
|---|---|---|
| actionId * | string | The record ID or MasterLabel/DeveloperName of the action to update |
| fieldValues | array | Field name to update (e.g., Location, ActionName, SortOrder, Profiles, EntityType, ActionType, ActionTarget, TargetType, TargetParameters) |
| isActive | boolean | Set active/inactive |
| label | string | New display label for the action |
| targetOrg | string | Optional: specific org |
update_recordUpdate an existing record in Salesforce| Parameter | Type | Description |
|---|---|---|
| objectName * | string | The API name of the object |
| recordId * | string | The record ID to update |
| targetOrg | string | |
| values * | object | Field values to update as key-value pairs |
upload_presentationUpload a presentation to LSC Intelligent Content. Supports three formats: (1) .pptx — converts to HTML5 per-slide ZIPs using LibreOffice (default, preserves layout with SVG/images) or Pandoc reveal.js (semantic HTML with transitions), (2) .pdf — uploads directly (Salesforce handles page splitting), (3) .zip file(s) or directory of ZIPs — validates HTML structure and uploads each as a page. Creates the presentation via the Bulk Presentation Connect API.| Parameter | Type | Description |
|---|---|---|
| activationDate | string | ISO 8601 activation date (e.g., '2025-03-01') |
| conversionEngine | string | PPTX conversion engine: 'libreoffice' (default) produces SVG-based HTML5 with pixel-perfect visual fidelity (fonts, colors, backgrounds); 'pandoc' produces semantic HTML5 (loses visual styling). Only applies to .pptx files. |
| deactivationDate | string | ISO 8601 deactivation date |
| enableDoubleTapZoom | boolean | Enable double-tap zoom in player |
| enablePinchZoom | boolean | Enable pinch-to-zoom in player |
| filePath * | any | Path(s) to file(s): single .pptx, single .pdf, .zip file(s), or a directory containing .zip files |
| playerGesture | string | Gesture to open the menu player |
| presentationId | string | External system ID (e.g., Veeva Vault ID) |
| presentationName * | string | Display name for the presentation in LSC |
| sendByEmail | boolean | Allow reps to email this presentation |
| targetOrg | string | Optional: specific org to upload to |
| topics | array | Array of Topic IDs for Content Library categorization |
Security checks
6 checks have not been run yet.