Toyota Motor Corp. is laying the groundwork to invest nearly $400 million into its pickup plant near San Antonio, Texas, to boost efficiencies in the production of its midsize Tacoma and full-size Tundra as part of an ongoing shift in its truck strategy.